The activity to test suggestions might be disabled by configuration. To avoid no component found for testing, just query activities including the disabled components. Fix: 300160935 Test: atest SettingsRoboTests:com.android.settings.suggestions Change-Id: I37718ea79480d16a90c67635666b8cdfa8be4dae
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.