Bug: 148514485 Test: m RunSettingsRoboTests -j ROBOTEST_FILTER= com.android.settings.wifi.tether.WifiTetherAutoOffPreferenceControllerTest Test: Manually verified the toggle from Settings. Change-Id: I5f89c6149b9f2e7145ecb1cf656adb3d3e8f1bff
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.