Update Setting's Robolectric tests' instructions

Test: N/A

Change-Id: I00a0b3ac910caaeb35f66762a9d67610b9180ff6
This commit is contained in:
Chun-Ku Lin
2024-05-11 02:24:21 +00:00
parent bb5bb304aa
commit 01463cac05

View File

@@ -4,21 +4,20 @@
## The full suite ## The full suite
``` ```
$ croot $ croot
$ make RunSettingsRoboTests $ atest SettingsRoboTests
``` ```
## Running a single test class ## Running a single test class
With a filter
``` ```
$ croot $ 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.