- Use the same service name(WifiManager.class) to mock WifiManager.class - Use the same service name(TetheringManager.class) to mock TetheringManager.class Bug: 183921878 Test: manual test make RunSettingsRoboTests ROBOTEST_FILTER=WifiTetherPasswordPreferenceControllerTest Change-Id: Ib6ec5a806b10e73a5fefd4acf070a4ab1f69e0d7
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.