blob: 1fe509ac538fa6c781523536a333e7ee62a64fdb [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 Brzezinski99cdc682021-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 {
32 // Permission indicators
33 "name": "CtsPermission4TestCases",
34 "options": [
35 {
36 "exclude-annotation": "org.junit.Ignore"
37 },
38 {
39 "exclude-annotation": "androidx.test.filters.FlakyTest"
40 }
41 ]
42 },
43 {
44 // Permission indicators
45 "name": "CtsVoiceRecognitionTestCases",
46 "options": [
47 {
48 "exclude-annotation": "org.junit.Ignore"
49 },
50 {
51 "exclude-annotation": "androidx.test.filters.FlakyTest"
52 }
53 ]
Lucas Dupin46363d4d2019-11-25 12:46:38 -080054 }
Lucas Dupine5dc1d92020-01-27 15:02:59 -080055 ],
Julia Tuttle49887b22020-08-17 13:00:48 -040056
57 // Curious where your @Scenario tests will run?
58 //
59 // @Ignore or @FlakyTest: nowhere
60 // @Staging: in staged-postsubmit, but not postsubmit or presubmit
61 // @Postsubmit: in postsubmit and staged-postsubmit, but not presubmit
62 // none of the above: in presubmit, postsubmit, and staged-postsubmit
63 //
64 // Therefore, please annotate new tests with @Staging, then with @Postsubmit
65 // once they're ready for postsubmit, then with neither once they're ready
66 // for presubmit.
67 //
68 // If you don't use @Staging or @Postsubmit, your new test will immediately
69 // block presubmit, which is probably not what you want!
Lucas Dupine5dc1d92020-01-27 15:02:59 -080070 "platinum-postsubmit": [
71 {
72 "name": "PlatformScenarioTests",
73 "options": [
74 {
75 "include-filter": "android.platform.test.scenario.sysui"
76 },
77 {
78 "include-annotation": "android.platform.test.scenario.annotation.Scenario"
79 },
80 {
Julia Tuttlea3e4e3a2020-03-11 17:09:58 -040081 "exclude-annotation": "org.junit.Ignore"
82 },
83 {
Lucas Dupine5dc1d92020-01-27 15:02:59 -080084 "exclude-annotation": "androidx.test.filters.FlakyTest"
85 },
86 {
87 "exclude-annotation": "android.platform.helpers.Staging"
Michal Brzezinski99cdc682021-09-09 16:57:35 +000088 },
89 {
90 "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
Lucas Dupine5dc1d92020-01-27 15:02:59 -080091 }
92 ]
93 }
Jun485caff2020-02-27 14:38:28 -080094 ],
Julia Tuttle49887b22020-08-17 13:00:48 -040095 "staged-platinum-postsubmit": [
96 {
97 "name": "PlatformScenarioTests",
98 "options": [
99 {
100 "include-filter": "android.platform.test.scenario.sysui"
101 },
102 {
103 "include-annotation": "android.platform.test.scenario.annotation.Scenario"
104 },
105 {
106 "exclude-annotation": "org.junit.Ignore"
107 },
108 {
109 "exclude-annotation": "androidx.test.filters.FlakyTest"
Michal Brzezinski99cdc682021-09-09 16:57:35 +0000110 },
111 {
112 "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
Julia Tuttle49887b22020-08-17 13:00:48 -0400113 }
114 ]
115 }
116 ],
Jun485caff2020-02-27 14:38:28 -0800117 "auto-end-to-end-postsubmit": [
118 {
Jun01053052021-10-07 17:03:30 -0700119 "name": "AndroidAutomotiveHomeTests",
Jun485caff2020-02-27 14:38:28 -0800120 "options" : [
121 {
Jun01053052021-10-07 17:03:30 -0700122 "include-filter": "android.platform.tests.HomeTest"
123 }
124 ]
125 },
126 {
127 "name": "AndroidAutomotiveNotificationsTests",
128 "options" : [
Jun485caff2020-02-27 14:38:28 -0800129 {
Jun01053052021-10-07 17:03:30 -0700130 "include-filter": "android.platform.tests.NotificationTest"
Jun485caff2020-02-27 14:38:28 -0800131 }
132 ]
133 }
Michal Brzezinski99cdc682021-09-09 16:57:35 +0000134 ],
135 "large-screen-postsubmit": [
136 {
137 "name": "PlatformScenarioTests",
138 "options" : [
139 {
140 "include-filter": "android.platform.test.scenario.sysui"
141 },
142 {
143 "include-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
144 },
145 {
146 "exclude-annotation": "org.junit.Ignore"
147 },
148 {
149 "exclude-annotation": "androidx.test.filters.FlakyTest"
150 }
151 ]
152 }
Lucas Dupin46363d4d2019-11-25 12:46:38 -0800153 ]
154}