blob: 24bffa14de155b44c1380d2257eca1f3f9003c56 [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"
Lucas Dupin46363d4d2019-11-25 12:46:38 -080025 }
26 ]
Fabian Kozynskid3e874b2021-04-05 15:29:59 -040027 },
28 {
29 // Permission indicators
30 "name": "CtsPermission4TestCases",
31 "options": [
32 {
33 "exclude-annotation": "org.junit.Ignore"
34 },
35 {
36 "exclude-annotation": "androidx.test.filters.FlakyTest"
37 }
38 ]
39 },
40 {
41 // Permission indicators
42 "name": "CtsVoiceRecognitionTestCases",
43 "options": [
44 {
45 "exclude-annotation": "org.junit.Ignore"
46 },
47 {
48 "exclude-annotation": "androidx.test.filters.FlakyTest"
49 }
50 ]
Lucas Dupin46363d4d2019-11-25 12:46:38 -080051 }
Lucas Dupine5dc1d92020-01-27 15:02:59 -080052 ],
Julia Tuttle49887b22020-08-17 13:00:48 -040053
54 // Curious where your @Scenario tests will run?
55 //
Julia Tuttleed036552021-04-06 12:02:50 -040056 // @Ignore: nowhere
57 // @Staging or @FlakyTest: in staged-postsubmit, but not postsubmit or
58 // presubmit
Julia Tuttle49887b22020-08-17 13:00:48 -040059 // @Postsubmit: in postsubmit and staged-postsubmit, but not presubmit
60 // none of the above: in presubmit, postsubmit, and staged-postsubmit
61 //
62 // Therefore, please annotate new tests with @Staging, then with @Postsubmit
63 // once they're ready for postsubmit, then with neither once they're ready
64 // for presubmit.
65 //
66 // If you don't use @Staging or @Postsubmit, your new test will immediately
67 // block presubmit, which is probably not what you want!
Lucas Dupine5dc1d92020-01-27 15:02:59 -080068 "platinum-postsubmit": [
69 {
70 "name": "PlatformScenarioTests",
71 "options": [
72 {
73 "include-filter": "android.platform.test.scenario.sysui"
74 },
75 {
76 "include-annotation": "android.platform.test.scenario.annotation.Scenario"
77 },
78 {
Julia Tuttlea3e4e3a2020-03-11 17:09:58 -040079 "exclude-annotation": "org.junit.Ignore"
80 },
81 {
Lucas Dupine5dc1d92020-01-27 15:02:59 -080082 "exclude-annotation": "androidx.test.filters.FlakyTest"
83 },
84 {
85 "exclude-annotation": "android.platform.helpers.Staging"
86 }
87 ]
88 }
Jun485caff2020-02-27 14:38:28 -080089 ],
Julia Tuttle49887b22020-08-17 13:00:48 -040090 "staged-platinum-postsubmit": [
91 {
92 "name": "PlatformScenarioTests",
93 "options": [
94 {
95 "include-filter": "android.platform.test.scenario.sysui"
96 },
97 {
98 "include-annotation": "android.platform.test.scenario.annotation.Scenario"
99 },
100 {
101 "exclude-annotation": "org.junit.Ignore"
Julia Tuttle49887b22020-08-17 13:00:48 -0400102 }
103 ]
104 }
105 ],
Jun485caff2020-02-27 14:38:28 -0800106 "auto-end-to-end-postsubmit": [
107 {
108 "name": "AndroidAutoUiTests",
109 "options" : [
110 {
111 "include-filter": "android.test.functional.auto.apps.HomeHelperTest"
112 },
113 {
114 "include-filter": "android.test.functional.auto.apps.NotificationHelperTest"
115 }
116 ]
117 }
Lucas Dupin46363d4d2019-11-25 12:46:38 -0800118 ]
119}