android-test
android-test copied to clipboard
An extensive framework for testing Android apps
### Description For research and development, I want to write tests that explore the behavior of content-change notifications my ContentProvider sends via ContentResolver.notifyChange(). This is not possible with ProviderTestRule, as...
In [reportProcessCrash](https://github.com/android/android-test/blob/6e0c8b6cccf17770253def0c576703f8b2457c9d/runner/android_junit_runner/java/androidx/test/internal/events/client/OrchestratedInstrumentationListener.java#L239), it waits for the [testFinishedCondition] to be opened, but that is never called anywhere in the code.
With the [deprecation of `AsyncTask`](https://android-review.googlesource.com/c/platform/frameworks/base/+/1156409/6/core/java/android/os/AsyncTask.java#196) I'd imagine many apps are starting to look at a switch to coroutines. One outstanding problem is that (as far as I'm aware) Espresso does...
### Description After update from 'androidx.test.espresso:espresso-contrib:3.3.0' to 'androidx.test.espresso:espresso-contrib:3.4.0' all my instrumentation tests fail. ### Steps to Reproduce use androidTestImplementation ('androidx.test.espresso:espresso-contrib:3.4.0') and Firebase Analytics, Performace, Crashlytics Run Espresso test. ### Expected...
### Description Using Espresso 3.4.0 + core 1.4.1-alpha04 does not show obvious errors and does not run any tests ### Steps to Reproduce https://github.com/android/architecture-samples/pull/820 ./gradlew cC ### Expected Results Tests...
Create whitelist for EspressoDevice APIs
### Description On Pixel 3 (this is probably android 10 specific issue but I've tested it only on Pixel 3) simple clicking on dialog button immediately after it is shown...
### Description When trying to launch espresso tests on Android 11, the connection times out with following error: ``` $ adb shell am instrument -w -m --no-window-animation -e debug false...
### Description The [UiDevice.getLauncherPackageName()](https://developer.android.com/reference/androidx/test/uiautomator/UiDevice#getlauncherpackagename) method returns an incorrect value on Android 11+ devices. Most likely, this is due to [package visibility changes in Android 11](https://developer.android.com/about/versions/11/privacy/package-visibility). If the method cannot be...
This is a pattern used elsewhere in bazel ruleset repositories to not define the same external repo twice if the caller of `android_test_repositories()` already defined one. There's also a fair...