Files
app_Settings/tests/robotests
Matthew DeVore 0a583b223e Connected displays: use Robolectric for tests
Use Robolectric for tests so that we don't have to deploy to a device
emulator. TestHandler is not available in Robolectric tests, so this CL
includes a substitute.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Test: atest <all moved tests>
Bug: b/399743032
Change-Id: I95721d9b90376374da7011e42c70e474b494e992
2025-03-03 10:37:48 -06:00
..

Running Settings Robolectric tests

The full suite

$ croot
$ atest SettingsRoboTests

Running a single test class

With a filter

$ croot
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest

You can also run any single test class with atest (it will try to find the correct path)

$ atest AdaptiveSleepPreferenceControllerTest