Prior CL ag/26930404 was reverted because an unused class was trimmed in AOSP, causing test cases to throw NoClassDefFoundError exceptions. This CL combines ag/26930404 and ag/26995936 to address the failure. Bug: 330498032 Test: atest FakeFeatureFactory, atest SyncAcrossDevicesPreferenceControllerTest Change-Id: I0a7ebccdebcad20e06d7542d7c4a0005885f393b
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.