Use the new coverage collection method for Java #7124
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Rules-Java
Issues for Java rules
There is a new coverage collection method for Java available for over a year. Currently it can be enabled by using
--experimental_java_coverage
. Make this method the default.What the new method does differently:
java_import
.js
files that shouldn't have been in the report in the first place)src/com/google/Action.java
instead ofcom/google/Action.java
). This allowsgenhtml
to generate HTML reports from the combined bazel coverage output.For more details see Bazel coverage for JVM languages.
The change will be done with an incompatible flag
--incompatible_java_coverage
, because it changes the file paths in the report (the coverage output).The users do not have to do any migration. Having the package paths in the report was filed as a bug (see #2528).
The text was updated successfully, but these errors were encountered: