|
21 | 21 | clippy {:doc "Runs all variations of cargo clippy"
|
22 | 22 | :depends [cargo-clippy-all-features cargo-clippy-no-defaults cargo-clippy-examples]}
|
23 | 23 | cov-all-features {:doc "Coverage, all features"
|
24 |
| - :task (shell {:extra-env code-cov-env} "cargo test --all-features")} |
| 24 | + :task (shell {:extra-env code-cov-env} "cargo llvm-cov --no-report --all-features")} |
25 | 25 | cov-std-only {:doc "Coverage, std only"
|
26 |
| - :task (shell {:extra-env code-cov-env} "cargo test --no-default-features")} |
| 26 | + :task (shell {:extra-env code-cov-env} "cargo llvm-cov --no-report --no-default-features")} |
27 | 27 | cov-examples {:doc "Coverage, examples"
|
28 |
| - :task (shell {:extra-env code-cov-env} "cargo test --examples")} |
29 |
| - clean-cov {:doc "Cleans all .profraw files and generated html" |
30 |
| - :task (fs/delete-tree "target/coverage")} |
31 |
| - grcov {:doc "Runs grcov to generate human readable html" |
32 |
| - :task (shell "grcov target/coverage --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing -o target/coverage/html")} |
33 |
| - coverage {:doc "Generates coverage in human friendly html in target/coverage/" |
34 |
| - :depends [clean-cov cov-all-features cov-std-only cov-examples grcov]} |
| 28 | + :task (shell {:extra-env code-cov-env} "cargo llvm-cov --no-report --examples")} |
| 29 | + cov-clean {:doc "Cleans all .profraw files and generated html" |
| 30 | + :task (shell "cargo llvm-cov clean --workspace")} |
| 31 | + cov-report {:doc "Runs llvm-cov" |
| 32 | + :task (shell "cargo llvm-cov")} |
| 33 | + cov-html {:doc "Runs llvm-cov to generate human readable html" |
| 34 | + :task (shell "cargo llvm-cov --html")} |
| 35 | + coverage {:doc "Generates coverage in human friendly html in target/llvm-cov/html/index.html" |
| 36 | + :depends [cov-clean cov-all-features cov-std-only cov-examples cov-html cov-report]} |
35 | 37 | test {:doc "Runs all tests and checks"
|
36 | 38 | :depends [cargo-test cargo-fmt clippy]}}}
|
0 commit comments