- Checking whether a stylus has a tail button key is not possible when the device is cached, so assume that it does. - Updated StylusDevicesControllerTest to use SwitchPreferenceCompat as there were unrelated tests that were failing. The actual test that would've caught the bug only started failing after the unrelated test failures were fixed. Bug: 311334474 Test: atest StylusDevicesControllerTest Flag: N/A Change-Id: Iee2899bf0a77a70f4a4f76833f485d511d919c40
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.