18 lines
604 B
TOML
18 lines
604 B
TOML
[tasks.testcov]
|
|
script_runner = "@shell"
|
|
ignore_errors = true
|
|
script = [
|
|
"mkdir -p coverage",
|
|
"mkdir -p coverage/html",
|
|
"mkdir -p coverage/",
|
|
"CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage -Ccodegen-units=1 -Copt-level=0 -Coverflow-checks=off' LLVM_PROFILE_FILE='llvm/cargo-test-%p-%m.profraw' cargo test --features test",
|
|
"grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore '/*' --ignore '*/errors.rs' -o coverage/html/",
|
|
]
|
|
|
|
[tasks.testing]
|
|
script_runner = "@shell"
|
|
ignore_errors = true
|
|
script = [
|
|
"cargo test --features \"test\"",
|
|
]
|