Biggest difference here: the use of a MockContentProvider Bug: 175389659 Test: atest -c PreferredNetworkModeContentObserverTest Change-Id: I891620118f7e84aa1c7f9e0ccdaeb21a225dc31a
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.