CheckOps
Mutant
Mutant is a mutation testing tool for Ruby that semantically changes code and checks your RSpec or Minitest tests detect it; it is free for open source and requires a paid subscription for commercial use.
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
Mutant is an automated code review and mutation testing tool for Ruby. It makes small semantic changes to your code, such as removing statements, replacing expressions, narrowing method calls or changing literals, and runs the tests that cover each subject. If tests still pass, the alive mutation shows code whose behaviour is not specified by your tests, or code that can be simplified.
Mutant integrates with RSpec and Minitest, selects tests by matching subjects to examples, and runs mutations in parallel. It supports incremental runs against a git revision (--since), which keeps CI fast by mutating only changed code, and its configuration lives in .mutant.yml or command-line options. Licensing: according to the README, Mutant is free for open-source use (with --usage opensource for public repositories), while commercial use requires a subscription of $30 per month or $250 per year per developer. Version 0.16.2 was released on 21 April 2026, with commits in November 2026.
Features
- Semantic mutations: Ruby-aware mutation operators.
- RSpec and Minitest: Integrations for both frameworks.
- Incremental runs:
--sincemutates only changed code. - Parallel execution: Uses multiple cores.
Pros
- Free for open source: No cost for public repositories.
- Rigorous: Ruby-aware semantic mutations.
Cons
- Commercial licence: Paid subscription for commercial use.
- Strictness: Requires disciplined test selection and can be demanding on legacy code.
Usage and Links (Example)
gem install mutant-rspec
bundle exec mutant run --usage opensource --include lib --require my_gem --integration rspec -- 'MyGem::Pricing*'
bundle exec mutant run --since main --usage commercial -- 'MyApp::Billing*'
Resources:
Pricing
Free for open source (use --usage opensource for public repositories). Commercial use requires a subscription: $30/month or $250/year per developer, per the project README.
Recommended for?
- Ruby teams wanting strict mutation testing in CI.
- Open-source Ruby gems, which can use Mutant for free.
Conclusion
Mutant is the most rigorous mutation testing tool for Ruby; it is free for open source, while commercial teams need a subscription.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with Mutant side by side.
RRSpecRSpec is the MIT-licensed behaviour-driven testing framework for Ruby, made up of rspec-core, rspec-expectations and rspec-mocks, and widely used with Rails via rspec-rails.Compare with Mutant
MMinitestMinitest is an MIT-licensed, fast and lightweight Ruby testing library providing xUnit-style tests, a spec DSL and benchmarks; it is the default testing framework in Ruby on Rails.Compare with Mutant
SSimpleCovSimpleCov is an MIT-licensed code coverage analysis tool for Ruby, built on Ruby's Coverage module, with HTML reports, branch coverage, groups, filters and minimum coverage thresholds.Compare with Mutant
SStrykerJSStrykerJS is the Apache-2.0 mutation testing framework for JavaScript and TypeScript, part of the Stryker Mutator family (with Stryker.NET and Stryker4s), supporting Jest, Vitest, Mocha, Karma and more.Compare with Mutant
PPIT (Pitest)PIT (Pitest) is an Apache-2.0 state-of-the-art mutation testing system for Java and the JVM that mutates bytecode to measure how well your tests detect faults, with Maven and Gradle plugins and HTML reports.Compare with Mutant
IInfectionInfection is a BSD-3-Clause AST-based mutation testing framework for PHP that measures test effectiveness with Mutation Score Indicator metrics, supporting PHPUnit, Pest, Codeception and phpspec.Compare with Mutant