1{
2  // Looking for unit test presubmit configuration?
3  // This currently lives in ATP config apct/system_ui/unit_test
4  "presubmit": [
5    {
6      "name": "PlatformScenarioTests",
7      "options": [
8        {
9            "include-filter": "android.platform.test.scenario.sysui"
10        },
11        {
12            "include-annotation": "android.platform.test.scenario.annotation.Scenario"
13        },
14        {
15            "exclude-annotation": "org.junit.Ignore"
16        },
17        {
18            "exclude-annotation": "androidx.test.filters.FlakyTest"
19        },
20        {
21            "exclude-annotation": "android.platform.helpers.Staging"
22        },
23        {
24            "exclude-annotation": "android.platform.test.annotations.Postsubmit"
25        },
26        {
27            "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
28        }
29      ]
30    },
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      ]
54    }
55  ],
56
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!
70  "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        {
81            "exclude-annotation": "org.junit.Ignore"
82        },
83        {
84            "exclude-annotation": "androidx.test.filters.FlakyTest"
85        },
86        {
87            "exclude-annotation": "android.platform.helpers.Staging"
88        },
89        {
90            "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
91        }
92      ]
93    }
94  ],
95  "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"
110        },
111        {
112            "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
113        }
114      ]
115    }
116  ],
117  "auto-end-to-end-postsubmit": [
118    {
119      "name": "AndroidAutomotiveHomeTests",
120      "options" : [
121        {
122          "include-filter": "android.platform.tests.HomeTest"
123        }
124      ]
125    },
126    {
127      "name": "AndroidAutomotiveNotificationsTests",
128      "options" : [
129        {
130          "include-filter": "android.platform.tests.NotificationTest"
131        }
132      ]
133    }
134  ],
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      }
153  ]
154}
155