blob: 9722b1fe2d2e478387123efc86498eef2275706b [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
vadimt8c1af8c2022-02-01 13:43:14 -08004 "presubmit-large": [
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 ]
vadimt8c1af8c2022-02-01 13:43:14 -080027 }
28 ],
29 "presubmit": [
Fabian Kozynskid3e874b2021-04-05 15:29:59 -040030 {
Fabian Kozynski001e28c2021-08-13 11:09:09 -040031 "name": "SystemUIGoogleTests",
32 "options": [
33 {
34 "exclude-annotation": "org.junit.Ignore"
35 },
36 {
37 "exclude-annotation": "androidx.test.filters.FlakyTest"
38 }
39 ]
40 },
41 {
Fabian Kozynskid3e874b2021-04-05 15:29:59 -040042 // Permission indicators
43 "name": "CtsPermission4TestCases",
44 "options": [
45 {
46 "exclude-annotation": "org.junit.Ignore"
47 },
48 {
49 "exclude-annotation": "androidx.test.filters.FlakyTest"
50 }
51 ]
52 },
53 {
54 // Permission indicators
55 "name": "CtsVoiceRecognitionTestCases",
56 "options": [
57 {
58 "exclude-annotation": "org.junit.Ignore"
59 },
60 {
61 "exclude-annotation": "androidx.test.filters.FlakyTest"
62 }
63 ]
Lucas Dupin46363d4d2019-11-25 12:46:38 -080064 }
Lucas Dupine5dc1d92020-01-27 15:02:59 -080065 ],
Julia Tuttle49887b22020-08-17 13:00:48 -040066
67 // Curious where your @Scenario tests will run?
68 //
Julia Tuttleed036552021-04-06 12:02:50 -040069 // @Ignore: nowhere
70 // @Staging or @FlakyTest: in staged-postsubmit, but not postsubmit or
71 // presubmit
Julia Tuttle49887b22020-08-17 13:00:48 -040072 // @Postsubmit: in postsubmit and staged-postsubmit, but not presubmit
73 // none of the above: in presubmit, postsubmit, and staged-postsubmit
74 //
75 // Therefore, please annotate new tests with @Staging, then with @Postsubmit
76 // once they're ready for postsubmit, then with neither once they're ready
77 // for presubmit.
78 //
79 // If you don't use @Staging or @Postsubmit, your new test will immediately
80 // block presubmit, which is probably not what you want!
Lucas Dupine5dc1d92020-01-27 15:02:59 -080081 "platinum-postsubmit": [
82 {
83 "name": "PlatformScenarioTests",
84 "options": [
85 {
86 "include-filter": "android.platform.test.scenario.sysui"
87 },
88 {
89 "include-annotation": "android.platform.test.scenario.annotation.Scenario"
90 },
91 {
Julia Tuttlea3e4e3a2020-03-11 17:09:58 -040092 "exclude-annotation": "org.junit.Ignore"
93 },
94 {
Lucas Dupine5dc1d92020-01-27 15:02:59 -080095 "exclude-annotation": "androidx.test.filters.FlakyTest"
96 },
97 {
Michal Brzezinskidd52fd82021-09-09 16:57:35 +000098 "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
Nicolo' Mazzucato22578a72021-12-09 16:27:46 +010099 },
100 {
101 "exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly"
Lucas Dupine5dc1d92020-01-27 15:02:59 -0800102 }
103 ]
104 }
Jun485caff2020-02-27 14:38:28 -0800105 ],
Julia Tuttle49887b22020-08-17 13:00:48 -0400106 "staged-platinum-postsubmit": [
107 {
108 "name": "PlatformScenarioTests",
109 "options": [
110 {
111 "include-filter": "android.platform.test.scenario.sysui"
112 },
113 {
114 "include-annotation": "android.platform.test.scenario.annotation.Scenario"
115 },
116 {
117 "exclude-annotation": "org.junit.Ignore"
Michal Brzezinskidd52fd82021-09-09 16:57:35 +0000118 },
119 {
120 "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
Nicolo' Mazzucato22578a72021-12-09 16:27:46 +0100121 },
122 {
123 "exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly"
Julia Tuttle49887b22020-08-17 13:00:48 -0400124 }
125 ]
126 }
127 ],
Jun485caff2020-02-27 14:38:28 -0800128 "auto-end-to-end-postsubmit": [
129 {
Jun01053052021-10-07 17:03:30 -0700130 "name": "AndroidAutomotiveHomeTests",
Jun485caff2020-02-27 14:38:28 -0800131 "options" : [
132 {
Jun01053052021-10-07 17:03:30 -0700133 "include-filter": "android.platform.tests.HomeTest"
134 }
135 ]
136 },
137 {
138 "name": "AndroidAutomotiveNotificationsTests",
139 "options" : [
Jun485caff2020-02-27 14:38:28 -0800140 {
Jun01053052021-10-07 17:03:30 -0700141 "include-filter": "android.platform.tests.NotificationTest"
Jun485caff2020-02-27 14:38:28 -0800142 }
143 ]
144 }
Michal Brzezinskidd52fd82021-09-09 16:57:35 +0000145 ],
146 "large-screen-postsubmit": [
147 {
148 "name": "PlatformScenarioTests",
149 "options" : [
150 {
151 "include-filter": "android.platform.test.scenario.sysui"
152 },
153 {
154 "include-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
155 },
156 {
157 "exclude-annotation": "org.junit.Ignore"
158 },
159 {
160 "exclude-annotation": "androidx.test.filters.FlakyTest"
161 }
162 ]
163 }
Yunqi5c655d12021-11-12 18:10:11 -0800164 ],
165 "hubui-postsubmit": [
166 {
167 "name": "PlatformScenarioTests",
168 "options": [
169 {
170 "include-filter": "android.platform.test.scenario.hubui"
171 },
172 {
173 "include-annotation": "android.platform.test.scenario.annotation.HubUi"
174 },
175 {
176 "exclude-annotation": "org.junit.Ignore"
177 },
178 {
179 "exclude-annotation": "androidx.test.filters.FlakyTest"
180 }
181 ]
182 }
Lucas Dupin46363d4d2019-11-25 12:46:38 -0800183 ]
184}