Rename --experimental_java_coverage to --incompatible_java_coverage
so we can use the new tested java coverage method in Bazel.
See
RELNOTES:
@@ -588,12 +588,22 @@ public class BuildConfiguration implements BuildConfigurationApi {
public boolean collectCodeCoverage;
@Option(
- name = "experimental_java_coverage",
+ name = "incompatible_java_coverage",
defaultValue = "false",
documentationCategory = OptionDocumentationCategory.OUTPUT_PARAMETERS,
effectTags = {OptionEffectTag.AFFECTS_OUTPUTS},
- help = "If true Bazel will use a new way of computing code coverage for java targets."
- )
+ metadataTags = {
+ OptionMetadataTag.INCOMPATIBLE_CHANGE,
+ OptionMetadataTag.TRIGGERED_BY_ALL_INCOMPATIBLE_CHANGES
+ },
+ oldName = "experimental_java_coverage",
+ help =
+ "If true Bazel will use a new way of computing code coverage for java targets. "
+ + "It allows collecting coverage for Starlark JVM rules and java_import. "
+ + "Only includes JVM files in the coverage report (e.g. dismisses data files). "
+ + "The report includes the actual path of the files relative to the workspace root "
+ + "instead of the package path (e.g. src/com/google/Action.java instead of "
+ + "com/google/Action.java.")
public boolean experimentalJavaCoverage;
@Option(
