pytest-gremlins
pytest-gremlins: A focused, open-source mutation testing plugin for Python teams using pytest. Ranked #9 of 25 in Mutation Testing Tools by our editors (6.6/10); pricing: Open source; best for pytest teams prioritizing fast CI feedback.
At a glance
- Editor score6.6 / 10
- PricingOpen source
- Best forpytest teams prioritizing fast CI feedback
- Paid fromNone
- Mutation quality gateYes
- Facts checked20 Sep 2026

Where it wins
- Native pytest integration with coverage-guided test selection
- Incremental caching and parallel execution support faster feedback
- HTML, JSON, and survivor reports support CI quality gates
Where it doesn't
- Requires Python 3.11 or newer
- Supports Python and pytest rather than multiple language ecosystems
- Mutation results depend on the configured operator set and test suite
Our verdict on pytest-gremlins
pytest-gremlins is an open-source pytest plugin for mutation testing in Python projects. It injects configurable mutations into code, runs relevant tests, and reports which changes tests detect or miss. Developers and teams seeking test-quality feedback beyond conventional code coverage can run it locally or in continuous integration workflows. Its native --gremlins command keeps the workflow close to pytest, while the project requires Python 3.11 or newer.
The plugin’s strongest fit is a pytest-centered ecosystem. Coverage-guided selection focuses execution on relevant tests, and incremental caching uses source, test, and mutation hashes to avoid repeating unchanged work. Parallel mutation execution supports configurable workers and can work with pytest-xdist. CI workflows can use the pytest-gremlins GitHub Action for score thresholds, with GitHub Actions, GitLab CI, and pre-commit integrations covering common development and automation paths. These capabilities make it suited to teams that want mutation feedback without moving away from their existing pytest process.
Reporting and mutation control give pytest-gremlins useful depth for diagnosing test gaps. Comparison, boundary, boolean, arithmetic, and return operators can be configured, while console, HTML, and JSON reports present results in different formats. Surviving mutant reports include file locations and mutation details, helping teams investigate missed behavior rather than relying on a single score. The MIT-licensed, open-source model suits teams that prefer a Python package they can incorporate into local and CI workflows. Teams using pytest and Python 3.11 or newer should consider it; organizations needing broad language or test-framework coverage should choose a tool designed for a wider ecosystem.
pytest-gremlins pricing
pytest-gremlins fact sheet
| Free plan | Not verified |
|---|---|
| Paid from | None |
| Supported languages | Python |
| Test frameworks | pytest |
| Incremental analysis | Yes |
| Parallel execution | Yes |
| Surviving mutant reports | Yes |
| Mutation quality gate | Yes |
| Mutation operators | comparison, boundary, boolean, arithmetic, return |
| Support | Docs, Community |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 4 integrations: GitHub Actions, GitLab CI, pytest-xdist, pre-commit |
| Pricing | Open source |
| Website | github.com |
| Facts checked | 20 Sep 2026 |
pytest-gremlins integrations
pytest-gremlins lists 4 integrations on its own site.
- GitHub Actions
- GitLab CI
- pytest-xdist
- pre-commit
Alternatives to pytest-gremlins
- ArcMutateA broad JVM mutation testing suite with CI workflows, quality gates and a free plan.9.8
- PITA mature open-source choice for Java teams that need configurable mutation analysis.8.2
- Stryker MutatorA broad, open-source mutation testing toolkit with strong CI and reporting support.7.7
See all pytest-gremlins alternatives →
Used pytest-gremlins? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used pytest-gremlins for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
pytest-gremlins is listed in our Mutation Testing Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/pytest-gremlins/"><img src="https://www.itechguides.com/best/badge/pytest-gremlins.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Sep 2026
Advertiser disclosure: iTechGuides is reader-supported. We may earn a commission when you click some links. How we rank.
Last updated · How we research and update


