- Get system service by application context instead of fragment context to avoid the context being occupied - Use the application main executor instead of creating new executor locally to avoid the executor being occupied Bug: 246531382 Test: manual test make RunSettingsRoboTests ROBOTEST_FILTER=TetherSettingsTest atest -c TetheringHelperTest Change-Id: I0de5e9c2bedfc8a224b3f8306224542212c9fcf5
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.