0

The problem I'm running into is that my bazel coverage output coverage data feels incomplete.

For example, I have a project with 10 source files, and 1 test file (which tests only 1 source file).

  • Run bazel clean && bazel coverage --combined_report=lcov -- //src/...:all
  • Verify coverage data generated with find -L -type f -name 'coverage.dat'

Notice that:

  • There exists 1 coverage file for each test run
  • (Problem!) There is no coverage data for the untested source files

Does anyone know how to configure bazel to generate a complete coverage report, which includes the untested source files as well?

Dragan R.
  • 598
  • 4
  • 18

0 Answers0