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" |
Michal Brzezinski | dd52fd8 | 2021-09-09 16:57:35 +0000 | [diff] [blame] | 25 | }, |
| 26 | { |
| 27 | "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly" |
Nicolo' Mazzucato | 22578a7 | 2021-12-09 16:27:46 +0100 | [diff] [blame^] | 28 | }, |
| 29 | { |
| 30 | "exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly" |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 31 | } |
| 32 | ] |
Fabian Kozynski | d3e874b | 2021-04-05 15:29:59 -0400 | [diff] [blame] | 33 | }, |
| 34 | { |
Fabian Kozynski | 001e28c | 2021-08-13 11:09:09 -0400 | [diff] [blame] | 35 | "name": "SystemUIGoogleTests", |
| 36 | "options": [ |
| 37 | { |
| 38 | "exclude-annotation": "org.junit.Ignore" |
| 39 | }, |
| 40 | { |
| 41 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 42 | } |
| 43 | ] |
| 44 | }, |
| 45 | { |
Fabian Kozynski | d3e874b | 2021-04-05 15:29:59 -0400 | [diff] [blame] | 46 | // Permission indicators |
| 47 | "name": "CtsPermission4TestCases", |
| 48 | "options": [ |
| 49 | { |
| 50 | "exclude-annotation": "org.junit.Ignore" |
| 51 | }, |
| 52 | { |
| 53 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 54 | } |
| 55 | ] |
| 56 | }, |
| 57 | { |
| 58 | // Permission indicators |
| 59 | "name": "CtsVoiceRecognitionTestCases", |
| 60 | "options": [ |
| 61 | { |
| 62 | "exclude-annotation": "org.junit.Ignore" |
| 63 | }, |
| 64 | { |
| 65 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 66 | } |
| 67 | ] |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 68 | } |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 69 | ], |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 70 | |
| 71 | // Curious where your @Scenario tests will run? |
| 72 | // |
Julia Tuttle | ed03655 | 2021-04-06 12:02:50 -0400 | [diff] [blame] | 73 | // @Ignore: nowhere |
| 74 | // @Staging or @FlakyTest: in staged-postsubmit, but not postsubmit or |
| 75 | // presubmit |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 76 | // @Postsubmit: in postsubmit and staged-postsubmit, but not presubmit |
| 77 | // none of the above: in presubmit, postsubmit, and staged-postsubmit |
| 78 | // |
| 79 | // Therefore, please annotate new tests with @Staging, then with @Postsubmit |
| 80 | // once they're ready for postsubmit, then with neither once they're ready |
| 81 | // for presubmit. |
| 82 | // |
| 83 | // If you don't use @Staging or @Postsubmit, your new test will immediately |
| 84 | // block presubmit, which is probably not what you want! |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 85 | "platinum-postsubmit": [ |
| 86 | { |
| 87 | "name": "PlatformScenarioTests", |
| 88 | "options": [ |
| 89 | { |
| 90 | "include-filter": "android.platform.test.scenario.sysui" |
| 91 | }, |
| 92 | { |
| 93 | "include-annotation": "android.platform.test.scenario.annotation.Scenario" |
| 94 | }, |
| 95 | { |
Julia Tuttle | a3e4e3a | 2020-03-11 17:09:58 -0400 | [diff] [blame] | 96 | "exclude-annotation": "org.junit.Ignore" |
| 97 | }, |
| 98 | { |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 99 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 100 | }, |
| 101 | { |
| 102 | "exclude-annotation": "android.platform.helpers.Staging" |
Michal Brzezinski | dd52fd8 | 2021-09-09 16:57:35 +0000 | [diff] [blame] | 103 | }, |
| 104 | { |
| 105 | "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly" |
Nicolo' Mazzucato | 22578a7 | 2021-12-09 16:27:46 +0100 | [diff] [blame^] | 106 | }, |
| 107 | { |
| 108 | "exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly" |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 109 | } |
| 110 | ] |
| 111 | } |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 112 | ], |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 113 | "staged-platinum-postsubmit": [ |
| 114 | { |
| 115 | "name": "PlatformScenarioTests", |
| 116 | "options": [ |
| 117 | { |
| 118 | "include-filter": "android.platform.test.scenario.sysui" |
| 119 | }, |
| 120 | { |
| 121 | "include-annotation": "android.platform.test.scenario.annotation.Scenario" |
| 122 | }, |
| 123 | { |
| 124 | "exclude-annotation": "org.junit.Ignore" |
Michal Brzezinski | dd52fd8 | 2021-09-09 16:57:35 +0000 | [diff] [blame] | 125 | }, |
| 126 | { |
| 127 | "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly" |
Nicolo' Mazzucato | 22578a7 | 2021-12-09 16:27:46 +0100 | [diff] [blame^] | 128 | }, |
| 129 | { |
| 130 | "exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly" |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 131 | } |
| 132 | ] |
| 133 | } |
| 134 | ], |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 135 | "auto-end-to-end-postsubmit": [ |
| 136 | { |
Jun | 0105305 | 2021-10-07 17:03:30 -0700 | [diff] [blame] | 137 | "name": "AndroidAutomotiveHomeTests", |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 138 | "options" : [ |
| 139 | { |
Jun | 0105305 | 2021-10-07 17:03:30 -0700 | [diff] [blame] | 140 | "include-filter": "android.platform.tests.HomeTest" |
| 141 | } |
| 142 | ] |
| 143 | }, |
| 144 | { |
| 145 | "name": "AndroidAutomotiveNotificationsTests", |
| 146 | "options" : [ |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 147 | { |
Jun | 0105305 | 2021-10-07 17:03:30 -0700 | [diff] [blame] | 148 | "include-filter": "android.platform.tests.NotificationTest" |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 149 | } |
| 150 | ] |
| 151 | } |
Michal Brzezinski | dd52fd8 | 2021-09-09 16:57:35 +0000 | [diff] [blame] | 152 | ], |
| 153 | "large-screen-postsubmit": [ |
| 154 | { |
| 155 | "name": "PlatformScenarioTests", |
| 156 | "options" : [ |
| 157 | { |
| 158 | "include-filter": "android.platform.test.scenario.sysui" |
| 159 | }, |
| 160 | { |
| 161 | "include-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly" |
| 162 | }, |
| 163 | { |
| 164 | "exclude-annotation": "org.junit.Ignore" |
| 165 | }, |
| 166 | { |
| 167 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 168 | } |
| 169 | ] |
| 170 | } |
Yunqi | 5c655d1 | 2021-11-12 18:10:11 -0800 | [diff] [blame] | 171 | ], |
| 172 | "hubui-postsubmit": [ |
| 173 | { |
| 174 | "name": "PlatformScenarioTests", |
| 175 | "options": [ |
| 176 | { |
| 177 | "include-filter": "android.platform.test.scenario.hubui" |
| 178 | }, |
| 179 | { |
| 180 | "include-annotation": "android.platform.test.scenario.annotation.HubUi" |
| 181 | }, |
| 182 | { |
| 183 | "exclude-annotation": "org.junit.Ignore" |
| 184 | }, |
| 185 | { |
| 186 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 187 | } |
| 188 | ] |
| 189 | } |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 190 | ] |
| 191 | } |