Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
res/ | 03-May-2024 | - | 181 | 75 | ||
src/com/android/settings/ | 03-May-2024 | - | 29,698 | 20,353 | ||
Android.bp | D | 03-May-2024 | 1.3 KiB | 47 | 39 | |
AndroidManifest.xml | D | 03-May-2024 | 4.2 KiB | 80 | 58 | |
AndroidTest.xml | D | 03-May-2024 | 1.4 KiB | 31 | 15 | |
OWNERS | D | 03-May-2024 | 72 | 3 | 2 | |
README | D | 03-May-2024 | 1.4 KiB | 30 | 21 |
README
1The simplest way to run all SettingsUnitTests is with atest 2$ atest SettingsUnitTests 3 4A single class can also be tested with the following command 5$ atest -c <YourClassName> 6 7// The following instrutions show how to run the test suite using make + adb // 8 9To build the tests you can use the following command at the root of your android source tree 10$ make SettingsUnitTests 11 12The test apk then needs to be installed onto your test device. The apk's location will vary 13depending on your device model and architecture. At the end of the make command's output, there 14should be a line similar to the following: 15"Copy: out/target/product/shamu/testcases/SettingsUnitTests/arm64/SettingsUnitTests.apk" 16Install via the following command: 17$ adb install -r out/target/product/shamu/testcases/SettingsUnitTests/arm64/SettingsUnitTests.apk 18 19To run all tests: 20$ adb shell am instrument -w com.android.settings.tests.unit/androidx.test.runner.AndroidJUnitRunner 21 22To run all tests in a specific class: 23$ adb shell am instrument -w -e class com.android.settings.<class> com.android.settings.tests.unit/androidx.test.runner.AndroidJUnitRunner 24 25To run a specific test: 26$ adb shell am instrument -w -e class com.android.settings.<class>#<test> com.android.settings.tests.unit/androidx.test.runner.AndroidJUnitRunner 27 28More general information can be found at 29http://developer.android.com/reference/android/support/test/runner/AndroidJUnitRunner.html 30