Skip to content

Commit 54c4033

Browse files
committed
genhtml 2.x
1 parent a052d89 commit 54c4033

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

test/small_world/MODULE.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ register_toolchains(
2626
)
2727

2828
bazel_dep(name = "googletest", version = "1.16.0")
29+
30+
# bazel run @lcov//:genhtml --version
31+
bazel_dep(name = "lcov", version = "2.3.1")
32+

test/small_world/MODULE.bazel.lock

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/small_world/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ genhtml --branch-coverage --output html cov.dat
1212
```
1313

1414
Mac is not yet supported.
15+
16+
genhtml 2.x:
17+
```
18+
bazel coverage --config=coverage_x86_64_linux //src/base_math:base_math_test
19+
20+
bazel run @lcov//:genhtml -- --output $(pwd)/html --source-directory=$(pwd) --branch-coverage "$(bazel info output_path)/_coverage/_coverage_report.dat"
21+
```
22+

0 commit comments

Comments
 (0)