Stop robolectric search tests using location_settings, use sound_settings instead. The choice of location_settings.xml seems arbitrary, and there's a commit coming which means one of the controllers doesn't just use settings to check availability. When the unconfigured mock returns null from a method, that causes the test to fail in a non-obvious way. Bug: 171371424 Test: m RunSettingsRoboTests Change-Id: I4d3386e3c62fb4151e4a4e27625edccec89316d9
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.