Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 1 | { |
| 2 | // Looking for unit test presubmit configuration? |
| 3 | // This currently lives in ATP config apct/system_ui/unit_test |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 4 | "presubmit": [ |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 5 | { |
| 6 | "name": "PlatformScenarioTests", |
| 7 | "options": [ |
| 8 | { |
| 9 | "include-filter": "android.platform.test.scenario.sysui" |
| 10 | }, |
| 11 | { |
Lucas Dupin | f1ae707 | 2019-12-03 09:25:52 -0800 | [diff] [blame] | 12 | "include-annotation": "android.platform.test.scenario.annotation.Scenario" |
| 13 | }, |
| 14 | { |
Julia Tuttle | a3e4e3a | 2020-03-11 17:09:58 -0400 | [diff] [blame] | 15 | "exclude-annotation": "org.junit.Ignore" |
| 16 | }, |
| 17 | { |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 18 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 19 | }, |
| 20 | { |
| 21 | "exclude-annotation": "android.platform.helpers.Staging" |
| 22 | }, |
| 23 | { |
| 24 | "exclude-annotation": "android.platform.test.annotations.Postsubmit" |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 25 | } |
| 26 | ] |
Fabian Kozynski | d3e874b | 2021-04-05 15:29:59 -0400 | [diff] [blame] | 27 | }, |
| 28 | { |
Fabian Kozynski | 001e28c | 2021-08-13 11:09:09 -0400 | [diff] [blame^] | 29 | "name": "SystemUIGoogleTests", |
| 30 | "options": [ |
| 31 | { |
| 32 | "exclude-annotation": "org.junit.Ignore" |
| 33 | }, |
| 34 | { |
| 35 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 36 | } |
| 37 | ] |
| 38 | }, |
| 39 | { |
Fabian Kozynski | d3e874b | 2021-04-05 15:29:59 -0400 | [diff] [blame] | 40 | // Permission indicators |
| 41 | "name": "CtsPermission4TestCases", |
| 42 | "options": [ |
| 43 | { |
| 44 | "exclude-annotation": "org.junit.Ignore" |
| 45 | }, |
| 46 | { |
| 47 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 48 | } |
| 49 | ] |
| 50 | }, |
| 51 | { |
| 52 | // Permission indicators |
| 53 | "name": "CtsVoiceRecognitionTestCases", |
| 54 | "options": [ |
| 55 | { |
| 56 | "exclude-annotation": "org.junit.Ignore" |
| 57 | }, |
| 58 | { |
| 59 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 60 | } |
| 61 | ] |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 62 | } |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 63 | ], |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 64 | |
| 65 | // Curious where your @Scenario tests will run? |
| 66 | // |
Julia Tuttle | ed03655 | 2021-04-06 12:02:50 -0400 | [diff] [blame] | 67 | // @Ignore: nowhere |
| 68 | // @Staging or @FlakyTest: in staged-postsubmit, but not postsubmit or |
| 69 | // presubmit |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 70 | // @Postsubmit: in postsubmit and staged-postsubmit, but not presubmit |
| 71 | // none of the above: in presubmit, postsubmit, and staged-postsubmit |
| 72 | // |
| 73 | // Therefore, please annotate new tests with @Staging, then with @Postsubmit |
| 74 | // once they're ready for postsubmit, then with neither once they're ready |
| 75 | // for presubmit. |
| 76 | // |
| 77 | // If you don't use @Staging or @Postsubmit, your new test will immediately |
| 78 | // block presubmit, which is probably not what you want! |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 79 | "platinum-postsubmit": [ |
| 80 | { |
| 81 | "name": "PlatformScenarioTests", |
| 82 | "options": [ |
| 83 | { |
| 84 | "include-filter": "android.platform.test.scenario.sysui" |
| 85 | }, |
| 86 | { |
| 87 | "include-annotation": "android.platform.test.scenario.annotation.Scenario" |
| 88 | }, |
| 89 | { |
Julia Tuttle | a3e4e3a | 2020-03-11 17:09:58 -0400 | [diff] [blame] | 90 | "exclude-annotation": "org.junit.Ignore" |
| 91 | }, |
| 92 | { |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 93 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 94 | }, |
| 95 | { |
| 96 | "exclude-annotation": "android.platform.helpers.Staging" |
| 97 | } |
| 98 | ] |
| 99 | } |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 100 | ], |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 101 | "staged-platinum-postsubmit": [ |
| 102 | { |
| 103 | "name": "PlatformScenarioTests", |
| 104 | "options": [ |
| 105 | { |
| 106 | "include-filter": "android.platform.test.scenario.sysui" |
| 107 | }, |
| 108 | { |
| 109 | "include-annotation": "android.platform.test.scenario.annotation.Scenario" |
| 110 | }, |
| 111 | { |
| 112 | "exclude-annotation": "org.junit.Ignore" |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 113 | } |
| 114 | ] |
| 115 | } |
| 116 | ], |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 117 | "auto-end-to-end-postsubmit": [ |
| 118 | { |
| 119 | "name": "AndroidAutoUiTests", |
| 120 | "options" : [ |
| 121 | { |
| 122 | "include-filter": "android.test.functional.auto.apps.HomeHelperTest" |
| 123 | }, |
| 124 | { |
| 125 | "include-filter": "android.test.functional.auto.apps.NotificationHelperTest" |
| 126 | } |
| 127 | ] |
| 128 | } |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 129 | ] |
| 130 | } |