You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So we need some docs for coverage.
For now I'll update this issue as the docs, once I've finalized it I'll add a MR to into the docs site.
Config
.bazelrc
# When running `bazel coverage` --instrument_test_targets needs to be set in order to
# collect coverage information from test targets
coverage --instrument_test_targets
WORKSPACE
If you use included_files then ensure that .wasm is added
If you don't use included_files then this isn't needed
yarn_install(
...
included_files = [ ".wasm" ]
Targets
Any target that you'd like to enable coverage for needs to add "@npm//c8" as a dep.
Basic run
Run yarn bazel coverage --combined_report=lcov --experimental_convenience_symlinks=normal :target
The combined lcov report will be in bazel-out/_coverage/_coverage_report.dat
This issue has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs!
So we need some docs for coverage.
For now I'll update this issue as the docs, once I've finalized it I'll add a MR to into the docs site.
Config
.bazelrc
WORKSPACE
If you use
included_files
then ensure that .wasm is addedIf you don't use
included_files
then this isn't neededTargets
Any target that you'd like to enable coverage for needs to add
"@npm//c8"
as a dep.Tracking issues
Development
Basic run
Run
yarn bazel coverage --combined_report=lcov --experimental_convenience_symlinks=normal :target
The combined lcov report will be in
bazel-out/_coverage/_coverage_report.dat
Tracking issues
CI
The text was updated successfully, but these errors were encountered: