Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Java code coverage for sh_tests missing #5331
Description of the problem:
Copying from bazel-discuss thread per request:
We have a mix of JUnit tests and sh_tests that invoke a binary in a test scenario.
Repo is open source: https://github.com/batfish/batfish@c6658e88 is base, and https://github.com/batfish/batfish/blob/c6658e88c8c9d48e393547281cc119d99b90670d/tests/parsing-tests/BUILD is the integration
I tried figuring out how the Java coverage works under the hood, but I got fairly stymied. Any guidance?
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Check out the linked repository at the linked commit and run
Note that there were 7 tests run, only 6 coverage.dat files produced. The 6 tests are
Note that I would actually be (very pleasantly) surprised if this worked as-is... I'd expect I might have to do something in the generated
What operating system are you running Bazel on?
macOS High Sierra 10.13.5 (17F77)
What's the output of
To add more context:
@iirina The links to the actual code are in the initial issue message and bazel-discuss thread. To re-summarize, and provide links to current implementation:
The current output of