blob: dee4ff5a0bf57e21311546cb6a15679d7406ad9c [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 {
Julia Tuttle49887b22020-08-17 13:00:48 -040018 "exclude-annotation": "android.platform.test.annotations.Postsubmit"
Michal Brzezinskidd52fd82021-09-09 16:57:35 +000019 },
20 {
21 "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
Nicolo' Mazzucato22578a72021-12-09 16:27:46 +010022 },
23 {
24 "exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly"
Lucas Dupin46363d4d2019-11-25 12:46:38 -080025 }
26 ]
Fabian Kozynskid3e874b2021-04-05 15:29:59 -040027 },
28 {
Fabian Kozynski001e28c2021-08-13 11:09:09 -040029 "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 Kozynskid3e874b2021-04-05 15:29:59 -040040 // 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 Dupin46363d4d2019-11-25 12:46:38 -080062 }
Lucas Dupine5dc1d92020-01-27 15:02:59 -080063 ],
Julia Tuttle49887b22020-08-17 13:00:48 -040064
65 // Curious where your @Scenario tests will run?
66 //
Julia Tuttleed036552021-04-06 12:02:50 -040067 // @Ignore: nowhere
68 // @Staging or @FlakyTest: in staged-postsubmit, but not postsubmit or
69 // presubmit
Julia Tuttle49887b22020-08-17 13:00:48 -040070 // @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 Dupine5dc1d92020-01-27 15:02:59 -080079 "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 Tuttlea3e4e3a2020-03-11 17:09:58 -040090 "exclude-annotation": "org.junit.Ignore"
91 },
92 {
Lucas Dupine5dc1d92020-01-27 15:02:59 -080093 "exclude-annotation": "androidx.test.filters.FlakyTest"
94 },
95 {
Michal Brzezinskidd52fd82021-09-09 16:57:35 +000096 "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
Nicolo' Mazzucato22578a72021-12-09 16:27:46 +010097 },
98 {
99 "exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly"
Lucas Dupine5dc1d92020-01-27 15:02:59 -0800100 }
101 ]
102 }
Jun485caff2020-02-27 14:38:28 -0800103 ],
Julia Tuttle49887b22020-08-17 13:00:48 -0400104 "staged-platinum-postsubmit": [
105 {
106 "name": "PlatformScenarioTests",
107 "options": [
108 {
109 "include-filter": "android.platform.test.scenario.sysui"
110 },
111 {
112 "include-annotation": "android.platform.test.scenario.annotation.Scenario"
113 },
114 {
115 "exclude-annotation": "org.junit.Ignore"
Michal Brzezinskidd52fd82021-09-09 16:57:35 +0000116 },
117 {
118 "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
Nicolo' Mazzucato22578a72021-12-09 16:27:46 +0100119 },
120 {
121 "exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly"
Julia Tuttle49887b22020-08-17 13:00:48 -0400122 }
123 ]
124 }
125 ],
Jun485caff2020-02-27 14:38:28 -0800126 "auto-end-to-end-postsubmit": [
127 {
Jun01053052021-10-07 17:03:30 -0700128 "name": "AndroidAutomotiveHomeTests",
Jun485caff2020-02-27 14:38:28 -0800129 "options" : [
130 {
Jun01053052021-10-07 17:03:30 -0700131 "include-filter": "android.platform.tests.HomeTest"
132 }
133 ]
134 },
135 {
136 "name": "AndroidAutomotiveNotificationsTests",
137 "options" : [
Jun485caff2020-02-27 14:38:28 -0800138 {
Jun01053052021-10-07 17:03:30 -0700139 "include-filter": "android.platform.tests.NotificationTest"
Jun485caff2020-02-27 14:38:28 -0800140 }
141 ]
142 }
Michal Brzezinskidd52fd82021-09-09 16:57:35 +0000143 ],
144 "large-screen-postsubmit": [
145 {
146 "name": "PlatformScenarioTests",
147 "options" : [
148 {
149 "include-filter": "android.platform.test.scenario.sysui"
150 },
151 {
152 "include-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
153 },
154 {
155 "exclude-annotation": "org.junit.Ignore"
156 },
157 {
158 "exclude-annotation": "androidx.test.filters.FlakyTest"
159 }
160 ]
161 }
Yunqi5c655d12021-11-12 18:10:11 -0800162 ],
163 "hubui-postsubmit": [
164 {
165 "name": "PlatformScenarioTests",
166 "options": [
167 {
168 "include-filter": "android.platform.test.scenario.hubui"
169 },
170 {
171 "include-annotation": "android.platform.test.scenario.annotation.HubUi"
172 },
173 {
174 "exclude-annotation": "org.junit.Ignore"
175 },
176 {
177 "exclude-annotation": "androidx.test.filters.FlakyTest"
178 }
179 ]
180 }
Lucas Dupin46363d4d2019-11-25 12:46:38 -0800181 ]
182}