From 01463cac05c4f9bf31bb0fef592290e7518dab80 Mon Sep 17 00:00:00 2001 From: Chun-Ku Lin Date: Sat, 11 May 2024 02:24:21 +0000 Subject: [PATCH] Update Setting's Robolectric tests' instructions Test: N/A Change-Id: I00a0b3ac910caaeb35f66762a9d67610b9180ff6 --- tests/robotests/README.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/robotests/README.md b/tests/robotests/README.md index 648f1af77d8..8083f75fdec 100644 --- a/tests/robotests/README.md +++ b/tests/robotests/README.md @@ -4,21 +4,20 @@ ## The full suite ``` $ croot -$ make RunSettingsRoboTests +$ atest SettingsRoboTests ``` ## Running a single test class +With a filter + ``` $ croot -$ make RunSettingsRoboTests ROBOTEST_FILTER= +$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest ``` -For example: +You can also run any single test class with atest (it will try to find the correct path) ``` -make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest +$ atest AdaptiveSleepPreferenceControllerTest ``` - -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.