cargo-mutants 1.2.1

Find inadequately-tested code that can be removed without any tests failing.
cargo-mutants-1.2.1 is not a library.

cargo-mutants

https://github.com/sourcefrog/cargo-mutants

Tests crates.io libs.rs

cargo-mutants is a mutation testing tool for Rust. It helps you improve your program's quality by finding functions whose body could be replaced without causing any tests to fail.

Coverage measurements can be helpful, but they really tell you what code is reached by a test, and not whether the test really checks anything about the behavior of the code. Mutation tests give different information, about whether the tests really check the code's behavior.

The goal of cargo-mutants is to be easy to run on any Rust source tree, and to tell you something interesting about areas where bugs might be lurking or the tests might be insufficient.

The main documentation is the user guide at https://mutants.rs/.

Install

cargo install --locked cargo-mutants

Quick start

From within a Rust source directory, just run

cargo mutants

Further reading

The main documentation is the user guide at https://mutants.rs/.

See also: