blob: 45e034544ac69c758809731ba325272196745f52 [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"
Lucas Dupin46363d4d2019-11-25 12:46:38 -080028 }
29 ]
Fabian Kozynskid3e874b2021-04-05 15:29:59 -040030 },
31 {
Fabian Kozynski001e28c2021-08-13 11:09:09 -040032 "name": "SystemUIGoogleTests",
33 "options": [
34 {
35 "exclude-annotation": "org.junit.Ignore"
36 },
37 {
38 "exclude-annotation": "androidx.test.filters.FlakyTest"
39 }
40 ]
41 },
42 {
Fabian Kozynskid3e874b2021-04-05 15:29:59 -040043 // Permission indicators
44 "name": "CtsPermission4TestCases",
45 "options": [
46 {
47 "exclude-annotation": "org.junit.Ignore"
48 },
49 {
50 "exclude-annotation": "androidx.test.filters.FlakyTest"
51 }
52 ]
53 },
54 {
55 // Permission indicators
56 "name": "CtsVoiceRecognitionTestCases",
57 "options": [
58 {
59 "exclude-annotation": "org.junit.Ignore"
60 },
61 {
62 "exclude-annotation": "androidx.test.filters.FlakyTest"
63 }
64 ]
Lucas Dupin46363d4d2019-11-25 12:46:38 -080065 }
Lucas Dupine5dc1d92020-01-27 15:02:59 -080066 ],
Julia Tuttle49887b22020-08-17 13:00:48 -040067
68 // Curious where your @Scenario tests will run?
69 //
Julia Tuttleed036552021-04-06 12:02:50 -040070 // @Ignore: nowhere
71 // @Staging or @FlakyTest: in staged-postsubmit, but not postsubmit or
72 // presubmit
Julia Tuttle49887b22020-08-17 13:00:48 -040073 // @Postsubmit: in postsubmit and staged-postsubmit, but not presubmit
74 // none of the above: in presubmit, postsubmit, and staged-postsubmit
75 //
76 // Therefore, please annotate new tests with @Staging, then with @Postsubmit
77 // once they're ready for postsubmit, then with neither once they're ready
78 // for presubmit.
79 //
80 // If you don't use @Staging or @Postsubmit, your new test will immediately
81 // block presubmit, which is probably not what you want!
Lucas Dupine5dc1d92020-01-27 15:02:59 -080082 "platinum-postsubmit": [
83 {
84 "name": "PlatformScenarioTests",
85 "options": [
86 {
87 "include-filter": "android.platform.test.scenario.sysui"
88 },
89 {
90 "include-annotation": "android.platform.test.scenario.annotation.Scenario"
91 },
92 {
Julia Tuttlea3e4e3a2020-03-11 17:09:58 -040093 "exclude-annotation": "org.junit.Ignore"
94 },
95 {
Lucas Dupine5dc1d92020-01-27 15:02:59 -080096 "exclude-annotation": "androidx.test.filters.FlakyTest"
97 },
98 {
99 "exclude-annotation": "android.platform.helpers.Staging"
Michal Brzezinskidd52fd82021-09-09 16:57:35 +0000100 },
101 {
102 "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
Lucas Dupine5dc1d92020-01-27 15:02:59 -0800103 }
104 ]
105 }
Jun485caff2020-02-27 14:38:28 -0800106 ],
Julia Tuttle49887b22020-08-17 13:00:48 -0400107 "staged-platinum-postsubmit": [
108 {
109 "name": "PlatformScenarioTests",
110 "options": [
111 {
112 "include-filter": "android.platform.test.scenario.sysui"
113 },
114 {
115 "include-annotation": "android.platform.test.scenario.annotation.Scenario"
116 },
117 {
118 "exclude-annotation": "org.junit.Ignore"
Michal Brzezinskidd52fd82021-09-09 16:57:35 +0000119 },
120 {
121 "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
Julia Tuttle49887b22020-08-17 13:00:48 -0400122 }
123 ]
124 }
125 ],
Jun485caff2020-02-27 14:38:28 -0800126 "auto-end-to-end-postsubmit": [
127 {
128 "name": "AndroidAutoUiTests",
129 "options" : [
130 {
131 "include-filter": "android.test.functional.auto.apps.HomeHelperTest"
132 },
133 {
134 "include-filter": "android.test.functional.auto.apps.NotificationHelperTest"
135 }
136 ]
137 }
Michal Brzezinskidd52fd82021-09-09 16:57:35 +0000138 ],
139 "large-screen-postsubmit": [
140 {
141 "name": "PlatformScenarioTests",
142 "options" : [
143 {
144 "include-filter": "android.platform.test.scenario.sysui"
145 },
146 {
147 "include-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
148 },
149 {
150 "exclude-annotation": "org.junit.Ignore"
151 },
152 {
153 "exclude-annotation": "androidx.test.filters.FlakyTest"
154 }
155 ]
156 }
Lucas Dupin46363d4d2019-11-25 12:46:38 -0800157 ]
158}