bazel coverage
fails when a java_test references no source files
#4309
Labels
coverage
P2
We'll consider working on this in future. (Assignee optional)
team-Rules-Java
Issues for Java rules
type: bug
Description of the problem / feature request / question:
If a
java_test
target does not reference any non-test source files (i.e. it only tests libraries), thenbazel coverage
generates an emptycoverage.dat
file. The LcovMerger fails withSEVERE: No lcov file found.
, even though an empty coverage file is valid in this case---there are no referenced files to be covered. LcovMerger should not fail in this case.If possible, provide a minimal example to reproduce the problem:
https://github.com/kevingessner/bazel-lcov-repro
Environment info
Operating System: Linux (Centos 7)
Bazel version (output of
bazel info release
): Reproducible on 0.7.0 and 0.8.1Have you found anything relevant by searching the web?
This error message is mentioned in #2528, but that issue is for a different coverage problem.
The text was updated successfully, but these errors were encountered: