Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

mutest-rs

mutest.rs

5.8 Club score Visit mutest.rs

What mutest-rs is

mutest-rs is a free, open-source Rust tool that generates program mutations and runs tests against them to assess a test suite. It works through the `cargo mutest run` subcommand on Cargo packages and workspaces, using Cargo target-selection options. Documentation says packages that run with `cargo test` will generally run the same suite under mutation analysis. Implemented operators include boolean negation, call deletion, equality inversion, logical-operator swaps, arithmetic changes, and relational changes. The `--mutation-operators` option controls active operators and defaults to `all`. Experimental batching combines mutations in distinct program areas for parallel test evaluation. Safety handling considers the mutation scope and selected flag, with `--safe` as the default and additional cautious, risky, and unsafe options. Installation currently requires compiling the project yourself, including its runtime, driver, and Cargo components. The project is primarily a research tool and relies on nightly Rust.

Who it suits

mutest-rs suits Rust developers and researchers evaluating Cargo test suites through mutation analysis. It is also aimed at active software-testing research and parallel test workflows.

Good to know, and what to watch

  • Works with Cargo packages and workspaces
  • Supports many mutation operators
  • Offers configurable safety flags
  • Provides experimental mutation batching
  • Dual licensed under Apache 2.0 and MIT
  • Installation requires compiling from source
  • Requires the nightly Rust toolchain
  • Batching defaults to none
  • Project is primarily a research tool

The verdict

mutest-rs adds mutation analysis to Cargo workflows, with configurable operators, safety handling, and parallel execution options. Its source-only installation and nightly-toolchain requirement matter when preparing a development environment.

What the maker publishes

Batching default
The batch size limit defaults to 1 and the batching algorithm defaults to none. source
Build requirement
The installation guide instructs users to build the `mutest-runtime` crate and install `mutest-driver` and `cargo-mutest` locally. source
Cargo support
The cargo mutest subcommand runs mutation analysis on Cargo packages and workspaces using standard Cargo target selection options. source
Configuration
Users can control the active mutation operators with the `--mutation-operators` argument; its default is `all`. source
Installation
The documented installation method is to compile the project from source; the site says compiling it yourself is currently the only option. source
Installation limit
The site says the only installation option is to compile mutest-rs yourself from source. source
Integration
The tool provides a Cargo-compatible interface and supports Cargo package and workspace targeting options. source
License
The project README states that mutest-rs is dual licensed under Apache 2.0 and MIT terms. source
License
The project is dual-licensed under Apache 2.0 and MIT terms. source
Mutation batching
An experimental batching technique combines mutations in distinct program areas to increase parallel evaluation of test cases. source
Mutation batching
Mutation batching combines mutations from distinct parts of a program so more test cases can be evaluated in each iteration. source
Mutation operators
Implemented operators include boolean negation, call deletion, equality inversion, logical operator swaps, arithmetic changes, and relational operator changes. source
Mutation operators
The documented operators include boolean negation, call deletion, arithmetic and logical operator swaps, and relational operator changes. source
Nightly requirement
The maker's repository says mutest-rs relies on the nightly Rust compiler toolchain. source
Purpose
mutest-rs generates and evaluates Rust program mutations to assess a test suite. source
Purpose
mutest-rs generates and evaluates program mutations to assess Rust test suites. source
Research status
The project README describes mutest-rs as primarily a research tool originally developed for the maker’s ongoing PhD work. source
Research use
The site says mutest-rs is used in active research by the Software Testing Group in the University of Sheffield's School of Computer Science. source
Safety
The documentation describes a safety property for mutations based on the safety of the scope where they are introduced and the safety flag used to invoke the tool. source
Safety handling
The tool treats possibly unsafe contexts as unsafe and propagates potential unsafety through the call graph when generating mutations. source
Safety options
The default safety flag is --safe, and the tool also documents --cautious, --risky, and --unsafe flags. source
Test compatibility
The documentation says that if `cargo test` works for a package, `cargo mutest run` will generally run the same test suite under mutation analysis. source
Workflow
It runs through the `cargo mutest run` subcommand on Cargo packages and workspaces. source

Checked against the maker's pages on 9 Oct 2026.