When rotating an androidx fragment, it uses default constructor to instantiate the new fragment instance. Every androidx fragment should not set private scope to it's default constructor. Bug: 153824549 Test: make RunSettingsRoboTests ROBOTEST_FILTER=NetworkRequestErrorDialogFragmentTest Change-Id: Ie1be0e033aa85d37cb4d85193b05beab72d4d8e7
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.