Test: m -j RunSettingsRoboTests runtest -x packages/apps/Settings/tests/unit/src/com/android/settings/core/UserRestrictionTest.java Fix: 67497909 After turn on the user restriction in TestDPC: https://hsv.googleplex.com/5414119658225664 The date time settings page become: https://hsv.googleplex.com/5199302573948928 Change-Id: I42590c4a505ec1b6ffa86eb460b90fa6ec8ba783
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.