Hi Team,
We are trying to get coverage for c++ files using bazel coverage. When we use the following startup option in our .bazelrc:
coverage:linux --test_env=LCOV_MERGER=/bin/true
we get an empty coverage.dat file, however if we don't use it, then it works i.e. the coverage.dat file is not empty but we require the LCOV_MERGER to be set as otherwise bazel coverage fails for files in other language like scala because it expects the merger to be set.
I have went through the issue:
https://github.com/bazelbuild/bazel/issues/7719 which seems relevant but couldn't get a clear answer of why this is happening. Do you know something about this? Why would setting the LCOV_MERGER lead to an empty coverage.dat files for c++ only?
Thank you,
Tanmay