1{ 2 // Looking for unit test presubmit configuration? 3 // This currently lives in ATP config apct/system_ui/unit_test 4 "presubmit-sysui": [ 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": "android.platform.test.annotations.Postsubmit" 19 }, 20 { 21 "exclude-annotation": "android.platform.test.annotations.FlakyTest" 22 } 23 ] 24 } 25 ], 26 "presubmit": [ 27 { 28 "name": "SystemUIGoogleTests", 29 "options": [ 30 { 31 "exclude-annotation": "org.junit.Ignore" 32 }, 33 { 34 "exclude-annotation": "androidx.test.filters.FlakyTest" 35 } 36 ] 37 }, 38 { 39 "name": "SystemUIGoogleScreenshotTests", 40 "options": [ 41 { 42 "exclude-annotation": "org.junit.Ignore" 43 }, 44 { 45 "exclude-annotation": "androidx.test.filters.FlakyTest" 46 }, 47 { 48 "exclude-annotation": "android.platform.test.annotations.Postsubmit" 49 } 50 ] 51 }, 52 { 53 // Permission indicators 54 "name": "CtsPermission4TestCases", 55 "options": [ 56 { 57 "exclude-annotation": "org.junit.Ignore" 58 }, 59 { 60 "exclude-annotation": "androidx.test.filters.FlakyTest" 61 } 62 ] 63 }, 64 { 65 // Permission indicators 66 "name": "CtsVoiceRecognitionTestCases", 67 "options": [ 68 { 69 "exclude-annotation": "org.junit.Ignore" 70 }, 71 { 72 "exclude-annotation": "androidx.test.filters.FlakyTest" 73 } 74 ] 75 } 76 ], 77 78 // Curious where your @Scenario tests will run? 79 // 80 // @Ignore: nowhere 81 // @FlakyTest: in staged-postsubmit, but not blocking postsubmit or 82 // presubmit 83 // @Postsubmit: in postsubmit and staged-postsubmit, but not presubmit 84 // none of the above: in presubmit, postsubmit, and staged-postsubmit 85 // 86 // Ideally, please annotate new tests with @FlakyTest, then with @Postsubmit 87 // once they're ready for postsubmit as they will immediately block go/android-platinum, 88 // then with neither once they're ready for presubmit. 89 // 90 // If you don't use @Postsubmit, your new test will immediately 91 // block presubmit, which is probably not what you want! 92 "sysui-platinum-postsubmit": [ 93 { 94 "name": "PlatformScenarioTests", 95 "options": [ 96 { 97 "include-filter": "android.platform.test.scenario.sysui" 98 }, 99 { 100 "include-annotation": "android.platform.test.scenario.annotation.Scenario" 101 }, 102 { 103 "exclude-annotation": "org.junit.Ignore" 104 }, 105 { 106 "exclude-annotation": "androidx.test.filters.FlakyTest" 107 }, 108 { 109 "exclude-annotation": "android.platform.test.annotations.FlakyTest" 110 } 111 ] 112 } 113 ], 114 "sysui-staged-platinum-postsubmit": [ 115 { 116 "name": "PlatformScenarioTests", 117 "options": [ 118 { 119 "include-filter": "android.platform.test.scenario.sysui" 120 }, 121 { 122 "include-annotation": "android.platform.test.scenario.annotation.Scenario" 123 }, 124 { 125 "exclude-annotation": "org.junit.Ignore" 126 } 127 ] 128 } 129 ], 130 "ironwood-postsubmit": [ 131 { 132 "name": "PlatformScenarioTests", 133 "options": [ 134 { 135 "include-annotation": "android.platform.test.annotations.IwTest" 136 }, 137 { 138 "exclude-annotation": "org.junit.Ignore" 139 }, 140 { 141 "include-filter": "android.platform.test.scenario.sysui" 142 }, 143 { 144 "exclude-annotation": "android.platform.test.annotations.FlakyTest" 145 } 146 ] 147 } 148 ], 149 "auto-end-to-end-postsubmit": [ 150 { 151 "name": "AndroidAutomotiveHomeTests", 152 "options" : [ 153 { 154 "include-filter": "android.platform.tests.HomeTest" 155 } 156 ] 157 }, 158 { 159 "name": "AndroidAutomotiveNotificationsTests", 160 "options" : [ 161 { 162 "include-filter": "android.platform.tests.NotificationTest" 163 } 164 ] 165 } 166 ], 167 "postsubmit": [ 168 { 169 "name": "SystemUIGoogleScreenshotTests", 170 "options": [ 171 { 172 "exclude-annotation": "org.junit.Ignore" 173 }, 174 { 175 "exclude-annotation": "androidx.test.filters.FlakyTest" 176 }, 177 { 178 "include-annotation": "android.platform.test.annotations.Postsubmit" 179 } 180 ] 181 } 182 ] 183} 184