Even though we can add whitelist in config, we still need to have a on device whitelist to reduce the size of config. Use doze whitelist here because we already used it to detect whether we can restrict the app in battery detail page. Bug: 74241534 Test: RunSettingsRoboTests Change-Id: I35b6f3eba9fbc8ae51bb02cd9d5416e4360c388e
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.