From b6a336826a3dcb5c52b98a48ac96573e5524fc27 Mon Sep 17 00:00:00 2001 From: Joanne Chung Date: Thu, 13 Aug 2020 19:16:58 +0800 Subject: [PATCH] Add needed tests in TEST_MAPPINGs under autofill related paths Add basic tests into TEST_MAPPING to make sure the tests can be tested in presubmit. There is a 30 minutes limitation for presubmit which doesn't allow to run all autofill tests. We only choose some tests and add @Presubmit annotation to the tests that want to verify in presubmit. The tests contains basic fillUi, saveUi, authentication, filtering, fill history, virtual view, compat mode. Skip webview because it is a high flaky fail tests. The presubmit time is 20-30 minutes for now, we can add/delete the chosen tests in presubmit when we receiving the fails. Bug: 154961272 Test: TreeHugger Change-Id: I25684a2122c4e705b75b9a30c3b7a61337bbd1a7 --- core/java/android/service/autofill/TEST_MAPPING | 7 +++++++ core/java/android/view/autofill/TEST_MAPPING | 7 +++++++ .../java/com/android/server/autofill/TEST_MAPPING | 15 +++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 core/java/android/service/autofill/TEST_MAPPING create mode 100644 core/java/android/view/autofill/TEST_MAPPING create mode 100644 services/autofill/java/com/android/server/autofill/TEST_MAPPING diff --git a/core/java/android/service/autofill/TEST_MAPPING b/core/java/android/service/autofill/TEST_MAPPING new file mode 100644 index 0000000000000..87a17ebee36db --- /dev/null +++ b/core/java/android/service/autofill/TEST_MAPPING @@ -0,0 +1,7 @@ +{ + "imports": [ + { + "path": "frameworks/base/services/autofill/java/com/android/server/autofill" + } + ] +} diff --git a/core/java/android/view/autofill/TEST_MAPPING b/core/java/android/view/autofill/TEST_MAPPING new file mode 100644 index 0000000000000..87a17ebee36db --- /dev/null +++ b/core/java/android/view/autofill/TEST_MAPPING @@ -0,0 +1,7 @@ +{ + "imports": [ + { + "path": "frameworks/base/services/autofill/java/com/android/server/autofill" + } + ] +} diff --git a/services/autofill/java/com/android/server/autofill/TEST_MAPPING b/services/autofill/java/com/android/server/autofill/TEST_MAPPING new file mode 100644 index 0000000000000..cf058add0262b --- /dev/null +++ b/services/autofill/java/com/android/server/autofill/TEST_MAPPING @@ -0,0 +1,15 @@ +{ + "presubmit": [ + { + "name": "CtsAutoFillServiceTestCases", + "options": [ + { + "include-annotation": "android.platform.test.annotations.Presubmit" + }, + { + "exclude-annotation": "androidx.test.filters.FlakyTest" + } + ] + } + ] +}