Merge "Add a readme with instructions on running tests" am: 08217cbd4b am: 931504bb24

am: 45f3c5b261

Change-Id: Ia45d584ab37ae15b4620f00199a477d913040295
This commit is contained in:
Fan Zhang
2017-11-01 01:29:35 +00:00
committed by android-build-merger

24
tests/robotests/README.md Normal file
View File

@@ -0,0 +1,24 @@
# Running Settings Robolectric tests
## The full suite
```
$ croot
$ make RunSettingsRoboTests
```
## Running a single test class
```
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
```
For example:
```
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
```
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.