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" |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 25 | } |
| 26 | ] |
| 27 | } |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 28 | ], |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 29 | |
| 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 Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 43 | "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 Tuttle | a3e4e3a | 2020-03-11 17:09:58 -0400 | [diff] [blame] | 54 | "exclude-annotation": "org.junit.Ignore" |
| 55 | }, |
| 56 | { |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 57 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 58 | }, |
| 59 | { |
| 60 | "exclude-annotation": "android.platform.helpers.Staging" |
| 61 | } |
| 62 | ] |
| 63 | } |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 64 | ], |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 65 | "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 | ], |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 84 | "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 Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 96 | ] |
| 97 | } |