blob: 092758ee34eda635e1fa20b11927ca1bab7a9be9 [file] [log] [blame]
Lucas Dupin46363d4d2019-11-25 12:46:38 -08001{
2 // Looking for unit test presubmit configuration?
3 // This currently lives in ATP config apct/system_ui/unit_test
Julia Tuttle49887b22020-08-17 13:00:48 -04004 "presubmit": [
Lucas Dupin46363d4d2019-11-25 12:46:38 -08005 {
6 "name": "PlatformScenarioTests",
7 "options": [
8 {
9 "include-filter": "android.platform.test.scenario.sysui"
10 },
11 {
Lucas Dupinf1ae7072019-12-03 09:25:52 -080012 "include-annotation": "android.platform.test.scenario.annotation.Scenario"
13 },
14 {
Julia Tuttlea3e4e3a2020-03-11 17:09:58 -040015 "exclude-annotation": "org.junit.Ignore"
16 },
17 {
Lucas Dupin46363d4d2019-11-25 12:46:38 -080018 "exclude-annotation": "androidx.test.filters.FlakyTest"
Julia Tuttle49887b22020-08-17 13:00:48 -040019 },
20 {
21 "exclude-annotation": "android.platform.helpers.Staging"
22 },
23 {
24 "exclude-annotation": "android.platform.test.annotations.Postsubmit"
Michal Brzezinskidd52fd82021-09-09 16:57:35 +000025 },
26 {
27 "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
Nicolo' Mazzucato22578a72021-12-09 16:27:46 +010028 },
29 {
30 "exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly"
Lucas Dupin46363d4d2019-11-25 12:46:38 -080031 }
32 ]
Fabian Kozynskid3e874b2021-04-05 15:29:59 -040033 },
34 {
Fabian Kozynski001e28c2021-08-13 11:09:09 -040035 "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 Kozynskid3e874b2021-04-05 15:29:59 -040046 // 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 Dupin46363d4d2019-11-25 12:46:38 -080068 }
Lucas Dupine5dc1d92020-01-27 15:02:59 -080069 ],
Julia Tuttle49887b22020-08-17 13:00:48 -040070
71 // Curious where your @Scenario tests will run?
72 //
Julia Tuttleed036552021-04-06 12:02:50 -040073 // @Ignore: nowhere
74 // @Staging or @FlakyTest: in staged-postsubmit, but not postsubmit or
75 // presubmit
Julia Tuttle49887b22020-08-17 13:00:48 -040076 // @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 Dupine5dc1d92020-01-27 15:02:59 -080085 "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 Tuttlea3e4e3a2020-03-11 17:09:58 -040096 "exclude-annotation": "org.junit.Ignore"
97 },
98 {
Lucas Dupine5dc1d92020-01-27 15:02:59 -080099 "exclude-annotation": "androidx.test.filters.FlakyTest"
100 },
101 {
102 "exclude-annotation": "android.platform.helpers.Staging"
Michal Brzezinskidd52fd82021-09-09 16:57:35 +0000103 },
104 {
105 "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
Nicolo' Mazzucato22578a72021-12-09 16:27:46 +0100106 },
107 {
108 "exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly"
Lucas Dupine5dc1d92020-01-27 15:02:59 -0800109 }
110 ]
111 }
Jun485caff2020-02-27 14:38:28 -0800112 ],
Julia Tuttle49887b22020-08-17 13:00:48 -0400113 "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 Brzezinskidd52fd82021-09-09 16:57:35 +0000125 },
126 {
127 "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
Nicolo' Mazzucato22578a72021-12-09 16:27:46 +0100128 },
129 {
130 "exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly"
Julia Tuttle49887b22020-08-17 13:00:48 -0400131 }
132 ]
133 }
134 ],
Jun485caff2020-02-27 14:38:28 -0800135 "auto-end-to-end-postsubmit": [
136 {
Jun01053052021-10-07 17:03:30 -0700137 "name": "AndroidAutomotiveHomeTests",
Jun485caff2020-02-27 14:38:28 -0800138 "options" : [
139 {
Jun01053052021-10-07 17:03:30 -0700140 "include-filter": "android.platform.tests.HomeTest"
141 }
142 ]
143 },
144 {
145 "name": "AndroidAutomotiveNotificationsTests",
146 "options" : [
Jun485caff2020-02-27 14:38:28 -0800147 {
Jun01053052021-10-07 17:03:30 -0700148 "include-filter": "android.platform.tests.NotificationTest"
Jun485caff2020-02-27 14:38:28 -0800149 }
150 ]
151 }
Michal Brzezinskidd52fd82021-09-09 16:57:35 +0000152 ],
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 }
Yunqi5c655d12021-11-12 18:10:11 -0800171 ],
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 Dupin46363d4d2019-11-25 12:46:38 -0800190 ]
191}