Skip to content

Commit

Permalink
Generate coverage report with all features enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Feb 5, 2024
1 parent 7e9c0d9 commit 7b537c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- run: cargo +nightly install cargo-llvm-cov --locked
- run: cargo +nightly llvm-cov --doctests --lcov --output-path lcov.info
- run: cargo +nightly --all-features llvm-cov --doctests --lcov --output-path lcov.info
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down
4 changes: 2 additions & 2 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ cargo +stable install cargo-llvm-cov --locked

Generate a HTML report
```bash
cargo +nightly llvm-cov --doctests --html
cargo +nightly llvm-cov --all-features --doctests --html
open target/llvm-cov/html/index.html
```

Generate a coverage file for [Coverage Gutters](https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters) in VSCode
```bash
cargo +nightly llvm-cov --doctests --lcov --output-path lcov.info
cargo +nightly llvm-cov --all-features --doctests --lcov --output-path lcov.info
```

## [Miri](https://github.com/rust-lang/miri)
Expand Down

0 comments on commit 7b537c7

Please sign in to comment.