Files
frameworks_base/packages/SystemUI/TEST_MAPPING
Nicolo' Mazzucato 22578a76b2 Add test mapping to avoid running @FoldableOnly scenarios
With this change, tests annotated with @FoldableOnly are not executed as
part of the existing presubmits.

Test: Manual
Bug: 209963184
Change-Id: I37dcf30a97ff2acf80d0dc7749530a01145e9ab7
2021-12-10 12:26:25 +00:00

192 lines
5.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"
},
{
"exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly"
}
]
},
{
"name": "SystemUIGoogleTests",
"options": [
{
"exclude-annotation": "org.junit.Ignore"
},
{
"exclude-annotation": "androidx.test.filters.FlakyTest"
}
]
},
{
// 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: nowhere
// @Staging or @FlakyTest: 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"
},
{
"exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly"
}
]
}
],
"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": "android.platform.test.scenario.annotation.LargeScreenOnly"
},
{
"exclude-annotation": "android.platform.test.scenario.annotation.FoldableOnly"
}
]
}
],
"auto-end-to-end-postsubmit": [
{
"name": "AndroidAutomotiveHomeTests",
"options" : [
{
"include-filter": "android.platform.tests.HomeTest"
}
]
},
{
"name": "AndroidAutomotiveNotificationsTests",
"options" : [
{
"include-filter": "android.platform.tests.NotificationTest"
}
]
}
],
"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"
}
]
}
],
"hubui-postsubmit": [
{
"name": "PlatformScenarioTests",
"options": [
{
"include-filter": "android.platform.test.scenario.hubui"
},
{
"include-annotation": "android.platform.test.scenario.annotation.HubUi"
},
{
"exclude-annotation": "org.junit.Ignore"
},
{
"exclude-annotation": "androidx.test.filters.FlakyTest"
}
]
}
]
}