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 | 99cdc68 | 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 | { |
| 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 | ] |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 54 | } |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 55 | ], |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 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! |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 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 | { |
Julia Tuttle | a3e4e3a | 2020-03-11 17:09:58 -0400 | [diff] [blame] | 81 | "exclude-annotation": "org.junit.Ignore" |
| 82 | }, |
| 83 | { |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 84 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 85 | }, |
| 86 | { |
| 87 | "exclude-annotation": "android.platform.helpers.Staging" |
Michal Brzezinski | 99cdc68 | 2021-09-09 16:57:35 +0000 | [diff] [blame] | 88 | }, |
| 89 | { |
| 90 | "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly" |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 91 | } |
| 92 | ] |
| 93 | } |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 94 | ], |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 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" |
Michal Brzezinski | 99cdc68 | 2021-09-09 16:57:35 +0000 | [diff] [blame] | 110 | }, |
| 111 | { |
| 112 | "exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly" |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 113 | } |
| 114 | ] |
| 115 | } |
| 116 | ], |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 117 | "auto-end-to-end-postsubmit": [ |
| 118 | { |
Jun | 0105305 | 2021-10-07 17:03:30 -0700 | [diff] [blame^] | 119 | "name": "AndroidAutomotiveHomeTests", |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 120 | "options" : [ |
| 121 | { |
Jun | 0105305 | 2021-10-07 17:03:30 -0700 | [diff] [blame^] | 122 | "include-filter": "android.platform.tests.HomeTest" |
| 123 | } |
| 124 | ] |
| 125 | }, |
| 126 | { |
| 127 | "name": "AndroidAutomotiveNotificationsTests", |
| 128 | "options" : [ |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 129 | { |
Jun | 0105305 | 2021-10-07 17:03:30 -0700 | [diff] [blame^] | 130 | "include-filter": "android.platform.tests.NotificationTest" |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 131 | } |
| 132 | ] |
| 133 | } |
Michal Brzezinski | 99cdc68 | 2021-09-09 16:57:35 +0000 | [diff] [blame] | 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 | } |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 153 | ] |
| 154 | } |