Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4231cfeb authored by Daniel Norman's avatar Daniel Norman
Browse files

Refreshes Accessibility core & service TEST_MAPPING files.

- Adds FrameworksCoreTests:android.accessibilityservice to
  services/accessibility/TEST_MAPPING postsubmit. These tests weren't
  covered by any other a11y TEST_MAPPING.
- Adds new TEST_MAPPING files, primarily in test dirs themselves.
  This ensures that test-only changes actually run their own tests.
- All of these TEST_MAPPING files now import
  services/accessibility/TEST_MAPPING which contains the superset
  of our tests. In general this is useful because many of our files
  affect tests outside their direct package (e.g. changing a Node
  property could affect a Service test). This minimizes config
  complexity at the cost of sometimes running too many tests.

Bug: 267225211
Test: atest --collect-tests-only \
        --test-mapping <path to files next to new TEST_MAPPING>
Change-Id: I674b93747f2f7e34b3038a07034029a982ac7f75
parent 307cdb4d
Loading
Loading
Loading
Loading
+2 −21
Original line number Diff line number Diff line
{
  "presubmit": [
  "imports": [
    {
      "name": "CtsAccessibilityServiceTestCases",
      "options": [
        {
          "include-annotation": "android.platform.test.annotations.Presubmit"
        },
        {
          "exclude-annotation": "android.support.test.filters.FlakyTest"
        }
      ]
    }
  ],
  "postsubmit": [
    {
      "name": "CtsAccessibilityServiceSdk29TestCases"
    },
    {
      "name": "CtsAccessibilityServiceTestCases"
    },
    {
      "name": "CtsAccessibilityTestCases"
      "path": "frameworks/base/services/accessibility/TEST_MAPPING"
    }
  ]
}
+2 −51
Original line number Diff line number Diff line
{
  "presubmit": [
  "imports": [
    {
      "name": "CtsAccessibilityServiceTestCases",
      "options": [
        {
          "include-annotation": "android.platform.test.annotations.Presubmit"
        },
        {
          "exclude-annotation": "android.support.test.filters.FlakyTest"
        }
      ]
    },
    {
      "name": "CtsUiAutomationTestCases",
      "options": [
        {
          "include-annotation": "android.platform.test.annotations.Presubmit"
        },
        {
          "exclude-annotation": "android.support.test.filters.FlakyTest"
        }
      ]
    },
    {
      "name": "FrameworksCoreTests",
      "options": [
        {
          "include-filter": "android.view.accessibility"
        },
        {
          "exclude-annotation": "androidx.test.filters.FlakyTest"
        }
      ]
    }
  ],
  "postsubmit": [
    {
      "name": "CtsAccessibilityServiceSdk29TestCases"
    },
    {
      "name": "CtsAccessibilityServiceTestCases"
    },
    {
      "name": "CtsUiAutomationTestCases"
    },
    {
      "name": "FrameworksCoreTests",
      "options": [
        {
          "include-filter": "android.view.accessibility"
        }
      ]
      "path": "frameworks/base/services/accessibility/TEST_MAPPING"
    }
  ]
}
+7 −0
Original line number Diff line number Diff line
{
  "imports": [
    {
      "path": "frameworks/base/services/accessibility/TEST_MAPPING"
    }
  ]
}
+7 −0
Original line number Diff line number Diff line
{
  "imports": [
    {
      "path": "frameworks/base/services/accessibility/TEST_MAPPING"
    }
  ]
}
+7 −0
Original line number Diff line number Diff line
{
  "imports": [
    {
      "path": "frameworks/base/services/accessibility/TEST_MAPPING"
    }
  ]
}
Loading