Use COMPLIANCE_WARNING_DEBUG_ACCESSORY to mock incompatible charging event as COMPLIANCE_WARNING_OTHER is being deprecated. Bug: 308700954 Bug: 310660470 Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge.batterytip" Flag: ACONFIG enable_input_power_limited_warning ENABLED Change-Id: Ib6f7cf253344db99a8cc1d06c59a5c35d40f736f
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.