mirror of
https://github.com/MarkusZoppelt/portfolio_rs.git
synced 2026-11-22 12:22:56 +01:00
`cargo coverage` runs cargo-llvm-cov with the project's gate: every line under src/ must run under `cargo test`, except `*_io.rs` files, which hold the thin shell that cannot run offline (live network, real terminal). The dev shell provides cargo-llvm-cov and points LLVM_COV/LLVM_PROFDATA at the LLVM rustc was built with.
13 lines
499 B
TOML
13 lines
499 B
TOML
[alias]
|
|
# The coverage gate. CI runs exactly this; agents run it before finishing.
|
|
#
|
|
# Every line under src/ must be executed by `cargo test`, except files named
|
|
# `*_io.rs`. Those hold the thin imperative shell that cannot run offline
|
|
# (live network calls, the real terminal). Keep them small and free of logic:
|
|
# anything that can be tested belongs in a covered file.
|
|
coverage = [
|
|
"llvm-cov",
|
|
"--ignore-filename-regex", "_io\\.rs$",
|
|
"--fail-under-lines", "100",
|
|
"--show-missing-lines",
|
|
]
|