Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit b189af6

Browse files
committed
Generate the HTML report
1 parent 3e052a9 commit b189af6

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,20 @@ $ cargo +nightly bench --features="unstable"
234234
Code coverage
235235
---
236236

237-
To generate code coverage statistics, run kcov via Docker:
237+
To generate code coverage statistics, install cargo-cov. Note: the tool currently only works
238+
in Rust nightly.
238239

239240
```bash
240-
$ ./ci/coverage.sh
241+
$ cargo +nightly install cargo-cov
241242
```
243+
244+
Run cargo-cov and generate a report:
245+
246+
```bash
247+
$ cargo +nightly cov test
248+
$ cargo +nightly cov report --open
249+
```
250+
242251
The coverage report will be written to `./target/cov/report/index.html`
243252

244253

ci/coverage.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ cd "$(dirname "$0")/.."
44

55
cargo install cargo-cov
66
cargo cov test
7+
cargo cov report
78

89
echo Coverage report:
910
ls -l target/cov/report/index.html

0 commit comments

Comments
 (0)