File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,15 @@ docker-build-prepare: ## Prepare the Docker build environment.
77
77
78
78
# #@ Test
79
79
80
+ # # Run unit/doc tests and generate html coverage report in `target/llvm-cov/html` folder.
81
+ # # Notice that `llvm-cov` supports doc tests only in nightly builds because the `--doc` flag
82
+ # # is unstable (https://github.com/taiki-e/cargo-llvm-cov/issues/2).
83
+ .PHONY : test-coverage
84
+ test-coverage :
85
+ cargo +nightly llvm-cov --no-report nextest -E ' kind(test) & !test(/\b(issue|ext_integration)/)' && \
86
+ cargo +nightly llvm-cov --no-report --doc && \
87
+ cargo +nightly llvm-cov report --doctests --open
88
+
80
89
.PHONY : test-unit
81
90
test-unit : # # Run unit tests.
82
91
cargo nextest run -E ' kind(test) & !test(/\b(issue|ext_integration)/)'
You can’t perform that action at this time.
0 commit comments