Rule should be public for junit. Test: atest SettingsRoboTests:com.android.settings.applications.AppWithAdminGrantedPermissionsCounterTest Merged-In: Id2ecf785655dfcca9f65fc3ee64ffae11fc78e88 Change-Id: I2f577f71011e1197703e115b704af0aa1ee1e5dd Signed-off-by: utzcoz <utzcoz@gmail.com>
Running Settings Robolectric tests
The full suite
$ croot
$ atest SettingsRoboTests
Running a single test class
With a filter
$ croot
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest
You can also run any single test class with atest (it will try to find the correct path)
$ atest AdaptiveSleepPreferenceControllerTest