Hasty Briefsbeta

Bilingual

Cargo-mutants:zombie: Inject bugs and see if your tests catch them

a year ago
  • #mutation-testing
  • #rust
  • #testing
  • cargo-mutants helps improve program quality by identifying potential bug insertion points without causing test failures.
  • It provides mutation testing, which checks if tests truly verify code behavior, unlike coverage measurements that only show code reached by tests.
  • Easy to run on any Rust source tree, it highlights areas where bugs might exist or tests may be insufficient.
  • Install via `cargo install --locked cargo-mutants`, `cargo-binstall`, or GitHub release binaries.
  • Run with `cargo mutants` or target specific files like `cargo mutants -f src/something.rs`.
  • Supports CI integration with instructions for incremental and full branch testing.
  • Actively maintained as a spare-time project with regular releases every 1-2 months.
  • Users can contribute by sharing experience reports or sponsoring development.
  • No warranty provided; software is as-is.