Skip to content

Commit

Permalink
chore(tooling): Fix invalid toml syntax in developer tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed May 6, 2024
1 parent 0a98986 commit 55640eb
Showing 1 changed file with 8 additions and 6 deletions.
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

0 comments on commit 55640eb

Please sign in to comment.