Root cause: Seem to need lottie raw resource when inflating the LottieAnimationView. Action: Use the mock for LottieAnimationView to avoid init when inflating the layout. Bug: 191251677 Test: make RunSettingsRoboTests ROBOTEST_FILTER=AnimatedImagePreferenceTest Change-Id: I0197442e5a65b40142b128f28a1c6bcd7cd3a0bd
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.