Merge "Update Setting's Robolectric tests' instructions" into main am: 2fcc3a20e5 am: 2626849471

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3083379

Change-Id: I1d61a4854fbe43e4eb6840680b0355890ebc386b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2024-05-13 18:07:54 +00:00
committed by Automerger Merge Worker

View File

@@ -4,21 +4,20 @@
## The full suite
```
$ croot
$ make RunSettingsRoboTests
$ atest SettingsRoboTests
```
## Running a single test class
With a filter
```
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest
```
For example:
You can also run any single test class with atest (it will try to find the correct path)
```
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
$ atest AdaptiveSleepPreferenceControllerTest
```
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches
multiple file names, all of them will be executed.