Fix broken test: com.android.settings.wifi.WifiSettingsTest. PasspointConfiguration objects require both HomeSp and Credential objects initialized, and since today it is enforced in the Wi-Fi API. Updated the test mocks to initialize the Credential object which was missing. Bug: 149175146 Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.wifi.WifiSettingsTest Change-Id: I709a6bc104141ac88b2c88bdac4f3a9a3d296ec9
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.