Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion extending/rules.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ my_test = rule(
cfg = config.exec(exec_group = "test"),
),
"_collect_cc_coverage": attr.label(
default = "@bazel_tools//tools/test:collect_cc_coverage",
default = "@rules_cc//cc/coverage:collect_cc_coverage",
executable = True,
cfg = config.exec(exec_group = "test"),
)
Expand All @@ -997,6 +997,9 @@ my_test = rule(
By using `configuration_field`, the dependency on the Java LCOV merger tool can
be avoided as long as coverage is not requested.

For C/C++ coverage collection, reference
`@rules_cc//cc/coverage:collect_cc_coverage`.

When the test is run, it should emit coverage information in the form of one or
more [LCOV files](https://manpages.debian.org/unstable/lcov/geninfo.1.en.html#TRACEFILE_FORMAT)
with unique names into the directory specified by the `COVERAGE_DIR` environment
Expand Down
2 changes: 1 addition & 1 deletion upstream
Submodule upstream updated 120 files