Use COMPLIANCE_WARNING_DEBUG_ACCESSORY to mock incompatible charging event as COMPLIANCE_WARNING_OTHER is being deprecated. Bug: 308700954 Test: make test RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.fuelgauge Change-Id: I1935740a7e4dca447fd545bbd46c35b42eeba508
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.