Root cause: Race condition to get content after the onDetach() Solution: Add protection to prevent this IllegalStateException Bug: 239578655 Test: make RunSettingsRoboTests ROBOTEST_FILTER=OneHandedSettings Test: Manual testing by rotating 100 times quickly Change-Id: I0a03cf1c01cd34c8ae0b0e70c4ffc41168b18ab8
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.