unplugged-vendor/packages/apps/Traceur/uitests
2025-10-06 13:59:42 +00:00
..
src/com/android/traceur/uitest Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
Android.bp Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
AndroidManifest.xml Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
AndroidTest.xml Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
README Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00

To build the tests you can use the following command at the root of your android source tree
$ make TraceurUiTests

The test apk then needs to be installed onto your test device via for example
$ adb install -r $ANDROID_PRODUCT_OUT/data/app/TraceurUiTests/TraceurUiTests.apk

To run all tests:
$ adb shell am instrument -w com.android.traceur.uitest/android.support.test.runner.AndroidJUnitRunner

To run all tests in a specific class:
$ adb shell am instrument -w -e class com.android.traceur.uitest.<class>
com.android.traceur.uitest/android.support.test.runner.AndroidJUnitRunner

To run a specific test:
$ adb shell am instrument -w -e class com.android.traceur.uitest.<class>#<test>
com.android.traceur.uitest/android.support.test.runner.AndroidJUnitRunner

More general information can be found at
http://developer.android.com/reference/android/support/test/runner/AndroidJUnitRunner.html