CheckOps
Cosmic Ray
Cosmic Ray is an MIT mutation testing tool for Python that applies mutation operators to source code and runs your test suite against each mutant, with distributed execution.
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
Cosmic Ray is a mutation testing tool for Python. It makes small changes to your source code, runs your test suite for each change, and reports which mutants survive.
A session is configured in TOML, initialised into a SQLite database of work items, and executed by local or distributed workers, which helps on large codebases. Operators include changing comparison and arithmetic operators, replacing constants and breaking out of loops. Filters skip code that should not be mutated, and reports come in text, HTML and other formats.
In the quality loop Cosmic Ray measures Python test effectiveness beyond coverage.
The source code is at sixty-north/cosmic-ray on GitHub under the MIT licence, with about 665 stars; the most recent commit was on 10 November 2026.
Features
- Mutation operators: A broad set for Python.
- Session database: Resumable runs in SQLite.
- Distributed workers: Scale across machines.
- Filters: Exclude code from mutation.
- Reports: Text and HTML.
- Test runner agnostic: Runs any test command.
Pros
- Resumable: Long runs can be paused and continued.
- Free to use: Open source under the MIT licence, so the core tool costs nothing to use.
- Actively maintained: The repository had commits as recent as 10 November 2026.
Cons
- Slow: Many mutants mean long runs.
- Setup steps: More ceremony than mutmut.
- Python 3.9+: Older versions unsupported.
Usage and Links (Example)
pip install cosmic-ray
cosmic-ray init config.toml session.sqlite
cosmic-ray exec config.toml session.sqlite
cr-report session.sqlite
Resources:
Pricing
Cosmic Ray is free and open source under the MIT licence.
Recommended for?
- Python teams with strong unit tests.
- Large codebases needing distributed runs.
Conclusion
Cosmic Ray is a thorough, resumable mutation tester for Python.
Compare it with mutmut if you prefer less configuration.
On CheckOps, Cosmic Ray is filed under the Unit testing and Release & CI gates stages. Related tools listed here include mutmut, pytest, Hypothesis, StrykerJS, PIT (Pitest) and mutmut. Before standardising on one, compare recent maintenance activity, the pricing model as your usage grows, and the integrations you rely on today. Information on this page was verified against the official website, documentation and repository on 11 November 2026.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with Cosmic Ray side by side.
Mmutmutmutmut is a BSD-3-Clause mutation testing tool for Python that changes your code in small ways and reports which mutants your tests fail to kill, with a terminal UI for browsing results.Compare with Cosmic Ray- Ppytestpytest is the usual Python test runner: plain asserts, fixtures, parametrization, and a large plugin set.Compare with Cosmic Ray
HHypothesisHypothesis is the MPL-2.0 property-based testing library for Python: describe the range of inputs, let it generate cases including edge cases, and get the simplest failing example when a property breaks.Compare with Cosmic Ray
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 Cosmic Ray
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 Cosmic Ray
AAppiumCross-platform automation framework for all kinds of apps, built on top of the W3C WebDriver protocol.Compare with Cosmic Ray