- Move junit test into unit test folder - Settings resources ids are different from the junit test ids so we need to find the correct resource id - ColorDisplayManager will not update in time before the controller is checked, and it can't be mocked since it's a final class Bug: 170970675 Test: manual, atest ReduceBrightColorsPreferenceControllerTest Change-Id: I57bfdd8294c5b6e147b4e11ae97b6b56f6121343
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.