blob: 6c7a5b8ffe9a490c2ac899a710b2582b6c4d3ab2 [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 ]
27 }
Lucas Dupine5dc1d92020-01-27 15:02:59 -080028 ],
Julia Tuttle49887b22020-08-17 13:00:48 -040029
30 // Curious where your @Scenario tests will run?
31 //
32 // @Ignore or @FlakyTest: nowhere
33 // @Staging: in staged-postsubmit, but not postsubmit or presubmit
34 // @Postsubmit: in postsubmit and staged-postsubmit, but not presubmit
35 // none of the above: in presubmit, postsubmit, and staged-postsubmit
36 //
37 // Therefore, please annotate new tests with @Staging, then with @Postsubmit
38 // once they're ready for postsubmit, then with neither once they're ready
39 // for presubmit.
40 //
41 // If you don't use @Staging or @Postsubmit, your new test will immediately
42 // block presubmit, which is probably not what you want!
Lucas Dupine5dc1d92020-01-27 15:02:59 -080043 "platinum-postsubmit": [
44 {
45 "name": "PlatformScenarioTests",
46 "options": [
47 {
48 "include-filter": "android.platform.test.scenario.sysui"
49 },
50 {
51 "include-annotation": "android.platform.test.scenario.annotation.Scenario"
52 },
53 {
Julia Tuttlea3e4e3a2020-03-11 17:09:58 -040054 "exclude-annotation": "org.junit.Ignore"
55 },
56 {
Lucas Dupine5dc1d92020-01-27 15:02:59 -080057 "exclude-annotation": "androidx.test.filters.FlakyTest"
58 },
59 {
60 "exclude-annotation": "android.platform.helpers.Staging"
61 }
62 ]
63 }
Jun485caff2020-02-27 14:38:28 -080064 ],
Julia Tuttle49887b22020-08-17 13:00:48 -040065 "staged-platinum-postsubmit": [
66 {
67 "name": "PlatformScenarioTests",
68 "options": [
69 {
70 "include-filter": "android.platform.test.scenario.sysui"
71 },
72 {
73 "include-annotation": "android.platform.test.scenario.annotation.Scenario"
74 },
75 {
76 "exclude-annotation": "org.junit.Ignore"
77 },
78 {
79 "exclude-annotation": "androidx.test.filters.FlakyTest"
80 }
81 ]
82 }
83 ],
Jun485caff2020-02-27 14:38:28 -080084 "auto-end-to-end-postsubmit": [
85 {
86 "name": "AndroidAutoUiTests",
87 "options" : [
88 {
89 "include-filter": "android.test.functional.auto.apps.HomeHelperTest"
90 },
91 {
92 "include-filter": "android.test.functional.auto.apps.NotificationHelperTest"
93 }
94 ]
95 }
Lucas Dupin46363d4d2019-11-25 12:46:38 -080096 ]
97}