Open gabrielrussoc opened 2 years ago
As far as I understand it baseline coverage isn't actually supported in bazel, but is probably half implemented because it's missing pieces from blaze. Later in the doc you linked it says:
Baseline coverage is currently broken
@keith https://github.com/bazelbuild/bazel/issues/5716 makes me think it might only be broken for native rules like C++ and Java, but perhaps starlark rules could work.
Anyway, is there any workaround? If you delete all your _test targets, does bazel coverage //...
produce an empty report?
Right now coverage is only produced when tests are run, so I guess what you'd have to do instead is launch the binary collecting coverage, kill it, and then run tests with coverage. Which we definitely don't handle.
Hey,
I'm trying to implement baseline coverage on scala rules and I was looking for some real world examples. Do you support baseline coverage? A quick github search didn't yield any results.
https://bazel.build/contribute/codebase#coverage-collection