Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26268494 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

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

parents aa970213 2fcc3a20
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -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.