Add mutation testing to justfile
This commit is contained in:
parent
d881f0bd58
commit
5bfd23925b
1 changed files with 16 additions and 0 deletions
16
.justfile
16
.justfile
|
|
@ -198,6 +198,22 @@ cover-open:
|
|||
|
||||
alias oo := cover-open
|
||||
|
||||
mutate:
|
||||
-just mutate-single -- --test-threads=1 serial_tests::
|
||||
-just mutate-single -- --skip serial_tests::
|
||||
|
||||
alias m := mutate
|
||||
|
||||
[private]
|
||||
mutate-single *cargo_test_args:
|
||||
cargo mutants --iterate \
|
||||
-E '<impl Debug<' \
|
||||
-E '<impl From<' \
|
||||
-E '<impl std::fmt::Display for ' \
|
||||
-E 'print_help -> bool' \
|
||||
--output target/mutants \
|
||||
-- {{ cargo_test_args }}
|
||||
|
||||
# Tag HEAD with version from Cargo.toml
|
||||
[script, group: 'assess']
|
||||
tag commit="HEAD": update
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue