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
This commit is contained in:
Julien Desprez 2021-02-24 02:07:45 +00:00
parent 4e92407479
commit 0c1c053956
2 changed files with 5 additions and 8 deletions

View File

@ -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 {

View File

@ -1,7 +0,0 @@
{
"presubmit": [
{
"name": "error_prone_android_framework_test"
}
]
}