{"repo":"sourcefrog/cargo-mutants","free":true,"listed":false,"github":"https://github.com/sourcefrog/cargo-mutants","clone":"git clone https://github.com/sourcefrog/cargo-mutants.git","description":":zombie: Inject bugs and see if your tests catch them!","language":"Rust","stars":1259,"topics":["testing","mutation-testing","mutations","rust","rust-lang","cargo-subcommand","cargo-plugin","cargo"],"license":"MIT","category":"dev-tools","readme_excerpt":"cargo-mutants cargo-mutants helps you improve your program's quality by finding places where bugs could be inserted 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. For more background, see the slides and video from my Rustconf 2024 talk. The main documentation is the user guide at . Prerequisites cargo-mutants can help on trees with non-flaky tests that run under cargo test or cargo nextest run . Install You can also install using cargo-binstall or from binaries attached to GitHub releases. Quick start From within a Rust source directory, just run To generate mutants in only one file: Integration with CI The manual includes instructions and examples for automatically testing mutants in CI, including incremental testing of pull requests and full testing of the development branch. Help advance cargo-mutants If you use cargo-mutants or just like the idea you can help it get better: Post an experience report in GitHub discussions, saying whether it worked, failed, found interesting results, etc. Sponsor development Project status As of Aug","default_branch":null,"files":null,"tree":[],"storefront":"/r/sourcefrog","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sourcefrog/cargo-mutants/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}