2 repositorios
Controls activity, intent, or service lifecycle within a test case using reusable rules on Android.
Distinct from Lifecycle Testing: Distinct from Lifecycle Testing: focuses on Android-specific lifecycle control via reusable test rules, not general component lifecycle verification.
Explore 2 awesome GitHub repositories matching testing & quality assurance · Android Lifecycle Test Rules. Refine with filters or upvote what's useful.
This is a collection of sample projects that demonstrate how to write automated tests for Android applications. The samples cover a range of testing techniques, including simulating user interactions with the Espresso framework, verifying navigation and inter-component communication through intent interception, and managing activity, intent, and service lifecycles using reusable test rules. The repository provides concrete implementations for testing across multiple application windows, capturing screenshots during test execution for visual verification, and synchronizing test assertions with
Controls activity, intent, or service lifecycle within test cases using reusable Android test rules.
Robolectric is a unit testing framework that runs Android tests directly inside the Java Virtual Machine, eliminating the need for an emulator or physical device. It provides a fully simulated Android environment that initializes system resources, application context, and the UI thread before each test, then resets state afterward to isolate tests from one another. The framework distinguishes itself by using shadow classes to intercept and replace Android framework method calls at runtime, allowing tests to control Android component lifecycles, simulate native methods, and test UI components
Controls Android component lifecycles during tests, enabling state-specific assertions without a real device.