Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/com/android/retaildemo/ | 22-Nov-2023 | - | 399 | 289 | ||
Android.mk | D | 22-Nov-2023 | 1.1 KiB | 34 | 11 | |
AndroidManifest.xml | D | 22-Nov-2023 | 1.1 KiB | 28 | 11 | |
AndroidTest.xml | D | 22-Nov-2023 | 1.2 KiB | 28 | 12 | |
README | D | 22-Nov-2023 | 904 | 18 | 12 |
README
1To build the tests you can use the following command at the root of your android source tree 2$ make RetailDemoTests 3 4The test apk then needs to be installed onto your test device via adb for example 5$ adb install -r out/target/product/shamu/data/app/RetailDemoTests/RetailDemoTests.apk 6 7To run all tests: 8$ adb shell am instrument -w com.android.retaildemo.tests/android.support.test.runner.AndroidJUnitRunner 9 10To run all tests in a specific class: 11$ adb shell am instrument -w -e class com.android.retaildemo.<class> com.android.retaildemo.tests/android.support.test.runner.AndroidJUnitRunner 12 13To run a specific test: 14$ adb shell am instrument -w -e class com.android.retaildemo.<class>#<test> com.android.retaildemo.tests/android.support.test.runner.AndroidJUnitRunner 15 16More general information can be found at 17http://developer.android.com/reference/android/support/test/runner/AndroidJUnitRunner.html 18