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
19
19
command = " cargo"
20
20
args = [" test" , " --all-features" ]
21
21
# 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 "
27
27
28
28
# After generating the .profraw, this step creates the html report.
29
29
# Important! Keep in grcov flags in sync with Makefile.internal.toml.
@@ -47,7 +47,9 @@ args = [
47
47
" --excl-line" , " \\ #\\ [derive\\ (|// cov\\ (skip\\ )" ,
48
48
" --excl-br-line" , " \\ #\\ [derive\\ (|// cov\\ (skip\\ )" ,
49
49
]
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"
51
53
52
54
# Cleans up all of the .profraw files left over after running -C instrument-coverage
53
55
[tasks .coverage-clean-profraw ]
You can’t perform that action at this time.
0 commit comments