• Home
Name Date Size #Lines LOC

..--

res/03-May-2024-18175

src/com/android/settings/03-May-2024-29,69820,353

Android.bpD03-May-20241.3 KiB4739

AndroidManifest.xmlD03-May-20244.2 KiB8058

AndroidTest.xmlD03-May-20241.4 KiB3115

OWNERSD03-May-202472 32

READMED03-May-20241.4 KiB3021

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