Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

When --enable_bzlmod bazel coverage fails to collect coverage

20 views
Skip to first unread message

Talal Tahir

unread,
Dec 6, 2024, 5:49:42 PM12/6/24
to bazel-discuss

My test target is a pytest (python 3.11)

Bazel version 6.5.0


When I run WITHOUT  --enable_bzlmod

bazel coverage --combined_report=lcov //my-test-target 

I get a coverage report.


When I add WITH common --enable_bzlmod in my .bazelrc file and I run 

bazel coverage --combined_report=lcov //my-test-target 

The test coverage report is blank.


no logs help, tried verbose logging to, nothing helpful indicating why it's not working.

Reply all
Reply to author
Forward
0 new messages