It was checking something in shared preferences which seems to have stopped working (a bunch of the stuff used in the test is deprecated). This CL just has it verify that updateDarkTheme() is called when appropriate since that is all we really care about. Test: is a test Bug: 130897882 Change-Id: If3286dd91b5a95cb0f41cac619a11a9089e0aecf
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.