File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,11 @@ workspace = false
1919command = " cargo"
2020args = [" test" , " --all-features" ]
2121# toolchain = "nightly"
22- env = {
23- RUSTFLAGS = " -Cinstrument-coverage " ,
24- RUSTDOCFLAGS = " -Cinstrument-coverage" ,
25- LLVM_PROFILE_FILE = " llvm_profile-%p-%m.profraw "
26- }
22+
23+ [ tasks . coverage-run-tests . env ]
24+ RUSTFLAGS = " -Cinstrument-coverage"
25+ RUSTDOCFLAGS = " -Cinstrument-coverage "
26+ LLVM_PROFILE_FILE = " llvm_profile-%p-%m.profraw "
2727
2828# After generating the .profraw, this step creates the html report.
2929# Important! Keep in grcov flags in sync with Makefile.internal.toml.
@@ -47,7 +47,9 @@ args = [
4747 " --excl-line" , " \\ #\\ [derive\\ (|// cov\\ (skip\\ )" ,
4848 " --excl-br-line" , " \\ #\\ [derive\\ (|// cov\\ (skip\\ )" ,
4949]
50- env = { LLVM_PROFILE_FILE = " llvm_profile-%p-%m.profraw" }
50+
51+ [tasks .coverage-run-grcov .env ]
52+ LLVM_PROFILE_FILE = " llvm_profile-%p-%m.profraw"
5153
5254# Cleans up all of the .profraw files left over after running -C instrument-coverage
5355[tasks .coverage-clean-profraw ]
You can’t perform that action at this time.
0 commit comments