Files
frameworks_base/packages/SystemUI/TEST_MAPPING
Michal Brzezinski 99cdc68a93 Adding test-mapping group for large screen specific tests
"large-screen-postsubmit" filters test by @LargeScreenOnly annotation.
See sample test in ag/15795721.

Bug: 191260984
Test: atest --test-mapping frameworks/base/packages/SystemUI:large-screen-postsubmit
Change-Id: Iad98e54521ad0ee782b5e28a3cb8c885192a6ec5
Merged-In: Iad98e54521ad0ee782b5e28a3cb8c885192a6ec5
2021-09-14 11:56:48 +00:00

150 lines
4.1 KiB
Plaintext

{
// Looking for unit test presubmit configuration?
// This currently lives in ATP config apct/system_ui/unit_test
"presubmit": [
{
"name": "PlatformScenarioTests",
"options": [
{
"include-filter": "android.platform.test.scenario.sysui"
},
{
"include-annotation": "android.platform.test.scenario.annotation.Scenario"
},
{
"exclude-annotation": "org.junit.Ignore"
},
{
"exclude-annotation": "androidx.test.filters.FlakyTest"
},
{
"exclude-annotation": "android.platform.helpers.Staging"
},
{
"exclude-annotation": "android.platform.test.annotations.Postsubmit"
},
{
"exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
}
]
},
{
// Permission indicators
"name": "CtsPermission4TestCases",
"options": [
{
"exclude-annotation": "org.junit.Ignore"
},
{
"exclude-annotation": "androidx.test.filters.FlakyTest"
}
]
},
{
// Permission indicators
"name": "CtsVoiceRecognitionTestCases",
"options": [
{
"exclude-annotation": "org.junit.Ignore"
},
{
"exclude-annotation": "androidx.test.filters.FlakyTest"
}
]
}
],
// Curious where your @Scenario tests will run?
//
// @Ignore or @FlakyTest: nowhere
// @Staging: in staged-postsubmit, but not postsubmit or presubmit
// @Postsubmit: in postsubmit and staged-postsubmit, but not presubmit
// none of the above: in presubmit, postsubmit, and staged-postsubmit
//
// Therefore, please annotate new tests with @Staging, then with @Postsubmit
// once they're ready for postsubmit, then with neither once they're ready
// for presubmit.
//
// If you don't use @Staging or @Postsubmit, your new test will immediately
// block presubmit, which is probably not what you want!
"platinum-postsubmit": [
{
"name": "PlatformScenarioTests",
"options": [
{
"include-filter": "android.platform.test.scenario.sysui"
},
{
"include-annotation": "android.platform.test.scenario.annotation.Scenario"
},
{
"exclude-annotation": "org.junit.Ignore"
},
{
"exclude-annotation": "androidx.test.filters.FlakyTest"
},
{
"exclude-annotation": "android.platform.helpers.Staging"
},
{
"exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
}
]
}
],
"staged-platinum-postsubmit": [
{
"name": "PlatformScenarioTests",
"options": [
{
"include-filter": "android.platform.test.scenario.sysui"
},
{
"include-annotation": "android.platform.test.scenario.annotation.Scenario"
},
{
"exclude-annotation": "org.junit.Ignore"
},
{
"exclude-annotation": "androidx.test.filters.FlakyTest"
},
{
"exclude-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
}
]
}
],
"auto-end-to-end-postsubmit": [
{
"name": "AndroidAutoUiTests",
"options" : [
{
"include-filter": "android.test.functional.auto.apps.HomeHelperTest"
},
{
"include-filter": "android.test.functional.auto.apps.NotificationHelperTest"
}
]
}
],
"large-screen-postsubmit": [
{
"name": "PlatformScenarioTests",
"options" : [
{
"include-filter": "android.platform.test.scenario.sysui"
},
{
"include-annotation": "android.platform.test.scenario.annotation.LargeScreenOnly"
},
{
"exclude-annotation": "org.junit.Ignore"
},
{
"exclude-annotation": "androidx.test.filters.FlakyTest"
}
]
}
]
}