cargo-mutants 0.2.9 finds poorly-tested code faster #51
sourcefrog
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To try it out, just
cargo install cargo-mutants
and then runcargo mutants
in your source tree. If it doesn't work, please file a bug!Faster:
cargo mutants
no longer runscargo check
before building, in cases where the build products are wanted or tests will be run. This saves a significant amount of work in build phases; in some treescargo mutants
is now 30% faster. (In trees where most of the time is spent running tests the effect will be less.)Fixed: Open log files in append mode to fix messages from other processes occasionally being partly overwritten.
Improved:
cargo mutants
should now give useful results in packages that use#![deny(unused)]
or other mechanisms to reject warnings. Mutated functions often ignore some parameters, which would previously be rejected by this configuration without proving anything interesting about test coverage. Now,--cap-lints=allow
is passed inRUSTFLAGS
while building mutants, so that they're not falsely rejected and the tests can be exercised.Improved: The build dir name includes the root package name.
Improved: The progress bar shows more information.
Improved: The final message shows how many mutants were tested and how long it took.
This discussion was created from the release cargo-mutants 0.2.9.
Beta Was this translation helpful? Give feedback.
All reactions