Skip to content

Commit

Permalink
Additional coverage test for predefined toolchains.
Browse files Browse the repository at this point in the history
  • Loading branch information
comius committed Jan 12, 2021
1 parent e84ee67 commit da3f7fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/shell/bazel/bazel_coverage_java_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ end_of_record"

bazel coverage --test_output=all --java_toolchain=//:custom_toolchain //:test &>$TEST_log || fail "Coverage with default_java_toolchain for //:test failed"
assert_coverage_result "$expected_result" "$coverage_file_path"

bazel coverage --test_output=all --javabase=@bazel_tools//tools/jdk:remote_jdk11 --java_toolchain=@bazel_tools//tools/jdk:toolchain_java10 //:test &>$TEST_log || fail "Coverage with default_java_toolchain for //:test failed"
assert_coverage_result "$expected_result" "$coverage_file_path"
}

function test_java_test_coverage_combined_report() {
Expand Down

0 comments on commit da3f7fd

Please sign in to comment.