**Root cause** We expected the spy resources will be used when calling context.getResources(). However, we didn't set up the connection. Hence the test failed due to trying to use the original resources. Bug: 279082331 Test: atest AccessibilityButtonFragmentTest Change-Id: Ib6e51b2b2607bec7980b9288a0a8076e4a036863
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.