Skip to content

Commit

Permalink
bazelrc: support generate coverage output with lcov and genhtml (#3899)
Browse files Browse the repository at this point in the history
  • Loading branch information
sluongng authored May 3, 2023
1 parent 22d47b0 commit ecbb56c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ test:webdriver-debug --test_env=DISPLAY
# otherwise), and display verbose webdriver output in the terminal.
test:webdriver-debug --test_output=streamed

# Currently only works for go tests
# Coverage outputs could be viewed with `genhtml`:
# $ genhtml -o cover bazel-out/_coverage/_coverage_report.dat
# $ open cover/index.html
coverage --combined_report=lcov

# Try importing a user specific .bazelrc
# You can create your own by copying and editing the template-user.bazelrc template:
# cp template-user.bazelrc user.bazelrc
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ user.bazelrc
# BuildBuddy certs
buildbuddy-cert.pem
buildbuddy-key.pem

# genhtml coverage outputs
/cover

0 comments on commit ecbb56c

Please sign in to comment.