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

Commit 0c1c0539 authored by Julien Desprez's avatar Julien Desprez
Browse files

Attempt to run error_prone_android_framework_test as unit tests

* unclear why the test mapping file is not running with host:true since
it's a java_test_host
* See go/a-unit-tests for full details

The test will continue to be part of presubmit but running as part of
the unit tests suite instead of TEST_MAPPING.
For unit tests, explicit test_mapping declaration isn't needed to run.


Change-Id: I9c0b93d6e6eb0b97ff96b1ac7c02d4525b762bd6
Test: presubmit
Bug: 180736967
Merged-In: I9c0b93d6e6eb0b97ff96b1ac7c02d4525b762bd6
parent 4e924074
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -36,11 +36,12 @@ java_library_host {

java_test_host {
    name: "error_prone_android_framework_test",
    test_suites: ["general-tests"],
    srcs: ["tests/java/**/*.java"],
    java_resource_dirs: ["tests/res"],
    java_resources: [":error_prone_android_framework_testdata"],
    static_libs: [
        "truth-prebuilt",
        "kxml2-2.3.0",
        "error_prone_android_framework_lib",
        "error_prone_test_helpers",
        "hamcrest-library",
@@ -48,6 +49,9 @@ java_test_host {
        "platform-test-annotations",
        "junit",
    ],
    test_options: {
        unit_test: true,
    },
}

filegroup {

errorprone/TEST_MAPPING

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
{
    "presubmit": [
        {
            "name": "error_prone_android_framework_test"
        }
    ]
}