Skip to content

Commit

Permalink
docs: add coverage support
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi <[email protected]>
  • Loading branch information
skyzh authored and sunshowers committed Mar 18, 2022
1 parent b81f5ab commit a46682f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions site/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- [Target runners](book/target-runners.md)
- [Other options](book/other-options.md)
- [Environment variables](book/env-vars.md)
- [Coverage](book/coverage.md)
- [Machine-readable output](book/machine-readable.md)
- [Configuration](book/configuration.md)
- [JUnit support](book/junit.md)
Expand Down
18 changes: 18 additions & 0 deletions site/src/book/coverage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Coverage

[cargo-llvm-cov](https://github.com/taiki-e/cargo-llvm-cov) has support for nextest.
Simply run the following command to generate coverage report with nextest:

```
cargo install cargo-llvm-cov
cargo llvm-cov nextest
```

## GitHub Action

You may install cargo-llvm-cov and nextest on GitHub Action, and then run llvm-cov with nextest.

```yaml
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: taiki-e/install-action@nextest
```

0 comments on commit a46682f

Please sign in to comment.