Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Makefile.internal.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ workspace = false
command = "cargo"
args = ["test", "--all-features"]
# toolchain = "nightly"
env = {
RUSTFLAGS = "-Cinstrument-coverage",
RUSTDOCFLAGS = "-Cinstrument-coverage",
LLVM_PROFILE_FILE = "llvm_profile-%p-%m.profraw"
}

[tasks.coverage-run-tests.env]
RUSTFLAGS = "-Cinstrument-coverage"
RUSTDOCFLAGS = "-Cinstrument-coverage"
LLVM_PROFILE_FILE = "llvm_profile-%p-%m.profraw"

# After generating the .profraw, this step creates the html report.
# Important! Keep in grcov flags in sync with Makefile.internal.toml.
Expand All @@ -47,7 +47,9 @@ args = [
"--excl-line", "\\#\\[derive\\(|// cov\\(skip\\)",
"--excl-br-line", "\\#\\[derive\\(|// cov\\(skip\\)",
]
env = { LLVM_PROFILE_FILE = "llvm_profile-%p-%m.profraw" }

[tasks.coverage-run-grcov.env]
LLVM_PROFILE_FILE = "llvm_profile-%p-%m.profraw"

# Cleans up all of the .profraw files left over after running -C instrument-coverage
[tasks.coverage-clean-profraw]
Expand Down