android-test
android-test copied to clipboard
An extensive framework for testing Android apps
For some classes, like `ViewInteraction` or `RootViewPicker`, IDE reports that library source doesn't match the byte code:  This makes it quite difficult to debug issues step by step Espresso...
### For the project I'm working on with my colleagues we've used ActivityTestRule for a long time with our Espresso tests. Then we've started using Compose and because of that...
Running a test with ActivityScenario while test coverage is enabled throws a NoClassDefFoundError
### Steps to Reproduce Follow the steps here to get Jacoco coverage for tests https://about.codecov.io/blog/code-coverage-for-android-development-using-kotlin-jacoco-github-actions-and-codecov/ Try to run this test ``` @RunWith(AndroidJUnit4::class) class StringAdapterTest { @Test fun testStringAdapter() { ActivityScenario.launch(...
Fix ActivityNotFoundException in ActivityScenario in API 33 There were two problems: 1) In AndroidManifest file, BootstrapActivity didn't have CATEGORY_LAUNCHER category which is now required for Intent.makeMainActivity. 2) When registering a...
Redo update ActivityScenario.launch() to remove BootstrapActivity
### Description I am trying to use Orchestrator to run my tests that are structured in separated classes each with multiple tests. I used to run tests by classes manually...
Introduce EspressoDeviceRule and DisplaySizeRule
Fix bug in UnclosedActivityScenario and ActivityScenarioNoAutoClose - Kotlin's special syntax, e.g., if/switch statements as right value expressions, breaks the detection of ActivityScenario instances. As a solution, loosen the condition of...
### Description When testing an Activity that has `launchMode=singleInstance` with an ActivityScenarioRule, after the test is completed the text executor gets stuck in EmptyActivity for ~45 seconds before progressing to...
Redo update ActivityScenario.launch() to remove BootstrapActivity