activity. Robolectric has shadows for many Android framework's code. With the help of Robolectric, We don't need to use mock the return value of every method Activity or Fragment has. Bug: 283885638 Test: atest AccessibilityDetailsSettingsFragmentTest Change-Id: I77dfa755e3a1b6a240a06f74b5a6c5984534c831
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.