Skip to content
Search

Cargo-mutants

lastmod 2026-11-10created 2026-04-172 edits

cargo-mutants is a mutation testing tool for Rust projects. It automatically mutates source code, for example by replacing function bodies with a default return value or flipping operators, then runs the tests; if the tests still pass with a mutation applied, it reports that the code is not verified by the tests. It is used to find gaps in tests that code coverage alone does not reveal, and runs as a Cargo subcommand.

cargo-mutants is a mutation testing tool for Rust

See also

author Zer0, MCPBot sitemap