Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 1 | { |
| 2 | // Looking for unit test presubmit configuration? |
| 3 | // This currently lives in ATP config apct/system_ui/unit_test |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 4 | "presubmit": [ |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 5 | { |
| 6 | "name": "PlatformScenarioTests", |
| 7 | "options": [ |
| 8 | { |
| 9 | "include-filter": "android.platform.test.scenario.sysui" |
| 10 | }, |
| 11 | { |
Lucas Dupin | f1ae707 | 2019-12-03 09:25:52 -0800 | [diff] [blame] | 12 | "include-annotation": "android.platform.test.scenario.annotation.Scenario" |
| 13 | }, |
| 14 | { |
Julia Tuttle | a3e4e3a | 2020-03-11 17:09:58 -0400 | [diff] [blame] | 15 | "exclude-annotation": "org.junit.Ignore" |
| 16 | }, |
| 17 | { |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 18 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 19 | }, |
| 20 | { |
| 21 | "exclude-annotation": "android.platform.helpers.Staging" |
| 22 | }, |
| 23 | { |
| 24 | "exclude-annotation": "android.platform.test.annotations.Postsubmit" |
Michal Brzezinski | dd52fd8 | 2021-09-09 16:57:35 +0000 | [diff] [blame^] | 25 | }, |
| 26 | { |
| 27 | "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly" |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 28 | } |
| 29 | ] |
Fabian Kozynski | d3e874b | 2021-04-05 15:29:59 -0400 | [diff] [blame] | 30 | }, |
| 31 | { |
Fabian Kozynski | 001e28c | 2021-08-13 11:09:09 -0400 | [diff] [blame] | 32 | "name": "SystemUIGoogleTests", |
| 33 | "options": [ |
| 34 | { |
| 35 | "exclude-annotation": "org.junit.Ignore" |
| 36 | }, |
| 37 | { |
| 38 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 39 | } |
| 40 | ] |
| 41 | }, |
| 42 | { |
Fabian Kozynski | d3e874b | 2021-04-05 15:29:59 -0400 | [diff] [blame] | 43 | // Permission indicators |
| 44 | "name": "CtsPermission4TestCases", |
| 45 | "options": [ |
| 46 | { |
| 47 | "exclude-annotation": "org.junit.Ignore" |
| 48 | }, |
| 49 | { |
| 50 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 51 | } |
| 52 | ] |
| 53 | }, |
| 54 | { |
| 55 | // Permission indicators |
| 56 | "name": "CtsVoiceRecognitionTestCases", |
| 57 | "options": [ |
| 58 | { |
| 59 | "exclude-annotation": "org.junit.Ignore" |
| 60 | }, |
| 61 | { |
| 62 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 63 | } |
| 64 | ] |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 65 | } |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 66 | ], |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 67 | |
| 68 | // Curious where your @Scenario tests will run? |
| 69 | // |
Julia Tuttle | ed03655 | 2021-04-06 12:02:50 -0400 | [diff] [blame] | 70 | // @Ignore: nowhere |
| 71 | // @Staging or @FlakyTest: in staged-postsubmit, but not postsubmit or |
| 72 | // presubmit |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 73 | // @Postsubmit: in postsubmit and staged-postsubmit, but not presubmit |
| 74 | // none of the above: in presubmit, postsubmit, and staged-postsubmit |
| 75 | // |
| 76 | // Therefore, please annotate new tests with @Staging, then with @Postsubmit |
| 77 | // once they're ready for postsubmit, then with neither once they're ready |
| 78 | // for presubmit. |
| 79 | // |
| 80 | // If you don't use @Staging or @Postsubmit, your new test will immediately |
| 81 | // block presubmit, which is probably not what you want! |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 82 | "platinum-postsubmit": [ |
| 83 | { |
| 84 | "name": "PlatformScenarioTests", |
| 85 | "options": [ |
| 86 | { |
| 87 | "include-filter": "android.platform.test.scenario.sysui" |
| 88 | }, |
| 89 | { |
| 90 | "include-annotation": "android.platform.test.scenario.annotation.Scenario" |
| 91 | }, |
| 92 | { |
Julia Tuttle | a3e4e3a | 2020-03-11 17:09:58 -0400 | [diff] [blame] | 93 | "exclude-annotation": "org.junit.Ignore" |
| 94 | }, |
| 95 | { |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 96 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 97 | }, |
| 98 | { |
| 99 | "exclude-annotation": "android.platform.helpers.Staging" |
Michal Brzezinski | dd52fd8 | 2021-09-09 16:57:35 +0000 | [diff] [blame^] | 100 | }, |
| 101 | { |
| 102 | "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly" |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 103 | } |
| 104 | ] |
| 105 | } |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 106 | ], |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 107 | "staged-platinum-postsubmit": [ |
| 108 | { |
| 109 | "name": "PlatformScenarioTests", |
| 110 | "options": [ |
| 111 | { |
| 112 | "include-filter": "android.platform.test.scenario.sysui" |
| 113 | }, |
| 114 | { |
| 115 | "include-annotation": "android.platform.test.scenario.annotation.Scenario" |
| 116 | }, |
| 117 | { |
| 118 | "exclude-annotation": "org.junit.Ignore" |
Michal Brzezinski | dd52fd8 | 2021-09-09 16:57:35 +0000 | [diff] [blame^] | 119 | }, |
| 120 | { |
| 121 | "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly" |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 122 | } |
| 123 | ] |
| 124 | } |
| 125 | ], |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 126 | "auto-end-to-end-postsubmit": [ |
| 127 | { |
| 128 | "name": "AndroidAutoUiTests", |
| 129 | "options" : [ |
| 130 | { |
| 131 | "include-filter": "android.test.functional.auto.apps.HomeHelperTest" |
| 132 | }, |
| 133 | { |
| 134 | "include-filter": "android.test.functional.auto.apps.NotificationHelperTest" |
| 135 | } |
| 136 | ] |
| 137 | } |
Michal Brzezinski | dd52fd8 | 2021-09-09 16:57:35 +0000 | [diff] [blame^] | 138 | ], |
| 139 | "large-screen-postsubmit": [ |
| 140 | { |
| 141 | "name": "PlatformScenarioTests", |
| 142 | "options" : [ |
| 143 | { |
| 144 | "include-filter": "android.platform.test.scenario.sysui" |
| 145 | }, |
| 146 | { |
| 147 | "include-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly" |
| 148 | }, |
| 149 | { |
| 150 | "exclude-annotation": "org.junit.Ignore" |
| 151 | }, |
| 152 | { |
| 153 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 154 | } |
| 155 | ] |
| 156 | } |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 157 | ] |
| 158 | } |