- Move the log point of onPreferenceTreeClick from DashboardFragment to it's super class InstrumentedPreferenceFragment for better coverage. - Write the preference click metric log in PreferenceController handling case in DashboardFragment which will skip super class's log point. Bug: 137559984 Test: robotest Change-Id: I67178f613c74f755e20fc9dc41319974cb02e83c
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.