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 | ] |
Fabian Kozynski | d3e874b | 2021-04-05 15:29:59 -0400 | [diff] [blame^] | 27 | }, |
| 28 | { |
| 29 | // Permission indicators |
| 30 | "name": "CtsPermission4TestCases", |
| 31 | "options": [ |
| 32 | { |
| 33 | "exclude-annotation": "org.junit.Ignore" |
| 34 | }, |
| 35 | { |
| 36 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 37 | } |
| 38 | ] |
| 39 | }, |
| 40 | { |
| 41 | // Permission indicators |
| 42 | "name": "CtsVoiceRecognitionTestCases", |
| 43 | "options": [ |
| 44 | { |
| 45 | "exclude-annotation": "org.junit.Ignore" |
| 46 | }, |
| 47 | { |
| 48 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 49 | } |
| 50 | ] |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 51 | } |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 52 | ], |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 53 | |
| 54 | // Curious where your @Scenario tests will run? |
| 55 | // |
| 56 | // @Ignore or @FlakyTest: nowhere |
| 57 | // @Staging: in staged-postsubmit, but not postsubmit or presubmit |
| 58 | // @Postsubmit: in postsubmit and staged-postsubmit, but not presubmit |
| 59 | // none of the above: in presubmit, postsubmit, and staged-postsubmit |
| 60 | // |
| 61 | // Therefore, please annotate new tests with @Staging, then with @Postsubmit |
| 62 | // once they're ready for postsubmit, then with neither once they're ready |
| 63 | // for presubmit. |
| 64 | // |
| 65 | // If you don't use @Staging or @Postsubmit, your new test will immediately |
| 66 | // block presubmit, which is probably not what you want! |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 67 | "platinum-postsubmit": [ |
| 68 | { |
| 69 | "name": "PlatformScenarioTests", |
| 70 | "options": [ |
| 71 | { |
| 72 | "include-filter": "android.platform.test.scenario.sysui" |
| 73 | }, |
| 74 | { |
| 75 | "include-annotation": "android.platform.test.scenario.annotation.Scenario" |
| 76 | }, |
| 77 | { |
Julia Tuttle | a3e4e3a | 2020-03-11 17:09:58 -0400 | [diff] [blame] | 78 | "exclude-annotation": "org.junit.Ignore" |
| 79 | }, |
| 80 | { |
Lucas Dupin | e5dc1d9 | 2020-01-27 15:02:59 -0800 | [diff] [blame] | 81 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 82 | }, |
| 83 | { |
| 84 | "exclude-annotation": "android.platform.helpers.Staging" |
| 85 | } |
| 86 | ] |
| 87 | } |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 88 | ], |
Julia Tuttle | 49887b2 | 2020-08-17 13:00:48 -0400 | [diff] [blame] | 89 | "staged-platinum-postsubmit": [ |
| 90 | { |
| 91 | "name": "PlatformScenarioTests", |
| 92 | "options": [ |
| 93 | { |
| 94 | "include-filter": "android.platform.test.scenario.sysui" |
| 95 | }, |
| 96 | { |
| 97 | "include-annotation": "android.platform.test.scenario.annotation.Scenario" |
| 98 | }, |
| 99 | { |
| 100 | "exclude-annotation": "org.junit.Ignore" |
| 101 | }, |
| 102 | { |
| 103 | "exclude-annotation": "androidx.test.filters.FlakyTest" |
| 104 | } |
| 105 | ] |
| 106 | } |
| 107 | ], |
Jun | 485caff | 2020-02-27 14:38:28 -0800 | [diff] [blame] | 108 | "auto-end-to-end-postsubmit": [ |
| 109 | { |
| 110 | "name": "AndroidAutoUiTests", |
| 111 | "options" : [ |
| 112 | { |
| 113 | "include-filter": "android.test.functional.auto.apps.HomeHelperTest" |
| 114 | }, |
| 115 | { |
| 116 | "include-filter": "android.test.functional.auto.apps.NotificationHelperTest" |
| 117 | } |
| 118 | ] |
| 119 | } |
Lucas Dupin | 46363d4d | 2019-11-25 12:46:38 -0800 | [diff] [blame] | 120 | ] |
| 121 | } |