Skip to content

Conversation

@KrishnaM256
Copy link

  • This PR fixes bazel#18839 by enabling Java code coverage to work correctly on Windows.

  • To fix this issue, the coverage_main_class field is now included in the launch_info. This ensures that the JACOCO_MAIN_CLASS environment variable is correctly set during execution. Without it, the coverage tool is unable to identify the correct entry point on Windows.

  • A related change is submitted in rules_java#311, which depends on this update. With both changes applied, Java code coverage is successfully collected on Windows using JaCoCo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bazel coverage //... for Java on Windows fails

2 participants