Skip to content

Commit 6e4d5c2

Browse files
committed
use cargo-llvm-cov to test and report coverage
I've been meaning to do this for a while.
1 parent 85a0c89 commit 6e4d5c2

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

engage.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,11 @@ script = "cargo clippy --workspace --all-targets --color=always -- -D warnings"
8686
[[task]]
8787
name = "cargo"
8888
group = "tests"
89-
script = "cargo test --workspace --all-targets --color=always -- --color=always"
89+
script = """
90+
cargo llvm-cov \
91+
--workspace \
92+
--all-targets \
93+
--color=always \
94+
-- \
95+
--color=always
96+
"""

flake.gen.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
devToolchain = mkToolchain (with toolchain; [
4343
cargo
4444
clippy
45+
llvm-tools
4546
rust-src
4647
rustc
4748

@@ -70,6 +71,7 @@
7071
packages = [
7172
devToolchain
7273
] ++ (with pkgs; [
74+
cargo-llvm-cov
7375
engage
7476
nixpkgs-fmt
7577
]) ++ (with pkgs.nodePackages; [

0 commit comments

Comments
 (0)