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

MutPy

github.com

  • Free plan
  • Linux
  • Self-hosted
7.2 Club score Visit github.com

What MutPy is

MutPy is a free, open-source mutation testing tool for Python source code. It helps developers assess whether their tests catch code changes by applying mutations at the abstract syntax tree level and checking which changes survive the test run. MutPy supports unittest by default, while its pytest runner is experimental. It can produce YAML and HTML reports, analyze code coverage, and restrict mutations to covered code. Users can select or disable operators and sample a percentage of mutants; higher order mutations are also supported. The tool includes standard mutation operators AOD, AOR, ASR, BCR, COD, COI, CRP, DDL, EHD, EXS, IHD, IOD, IOP, LCR, LOD, LOR, ROR, SCD, SCI and SIR, as well as experimental operators CDI, OIL, RIL, SDI, SDL, SVD and ZIL. The README describes support for Python 3.3 and later. MutPy can be installed from PyPI with pip or from repository source and is licensed under Apache License 2.0. PyPI lists version 0.6.1, released November 17, 2019, as the latest release. The README cautions that disabling stdout can damage tests that interact with sys.stdout.

Who it suits

MutPy suits Python developers who want to check whether their tests detect code changes. It is aimed at software testing and supports unittest by default, with pytest available as an experimental runner.

Good to know, and what to watch

  • Applies mutations at the AST level.
  • Generates YAML and HTML reports.
  • Can limit mutations to covered code.
  • Supports higher order mutations and operator selection.
  • Free and licensed under Apache License 2.0.
  • Pytest support is experimental.
  • The latest listed release is version 0.6.1 from November 17, 2019.
  • Disabling stdout can damage tests that interact with sys.stdout.

MutPy

Free

Open source

Getting started

  1. Install MutPy from PyPI with pip or from the repository source
  2. Use it on Linux or in a self-hosted environment
  3. Run it with unittest by default, or select the experimental pytest runner

The verdict

MutPy offers mutation controls, coverage analysis and reports for Python testing. Its documented pytest runner is experimental, and the latest listed release is from 2019.

Questions people ask

Is MutPy free?

Yes. Its plan is listed as free, and it is open source under Apache License 2.0.

Which Python versions does MutPy support?

The README describes support for Python 3.3 and later.

Which test runners can MutPy use?

unittest is supported by default. pytest is available as an experimental runner.

What reports does MutPy generate?

It can generate YAML and HTML reports, including reports of surviving mutants.

How can MutPy be installed?

The project README describes installation from PyPI with pip or from the repository source.

What should users know about stdout?

The README warns that disabling stdout can damage tests that interact with sys.stdout.

What the maker publishes

Availability
PyPI lists version 0.6.1, released November 17, 2019. source
Compatibility
The README describes MutPy as supporting Python 3.3+ source code. source
Development origin
The project says it was developed as part of engineering and master's theses at Warsaw University of Technology's Institute of Computer Science. source
Installation
The project README says to install MutPy from PyPI with pip or install it from the repository source. source
Installation
The project README gives pip installation and source installation instructions. source
Integrations
The documented test runner integrations are unittest and experimental pytest; no other integrations are listed. source
Intended users
PyPI classifies the package for developers and software testing. source
License
The project is licensed under the Apache License, Version 2.0. source
Limitations
The README warns that disabling stdout can damage tests that interact with sys.stdout. source
Mutation controls
Command line options include selecting or disabling operators, sampling a percentage of mutants, and mutating only covered code. source
Mutation features
It supports higher order mutations and code coverage analysis. source
Mutation method
It applies mutations at the abstract syntax tree (AST) level. source
Mutation method
It applies mutations at the abstract syntax tree level. source
Mutation options
It supports higher order mutations and code coverage analysis, including an option to mutate only covered code. source
Operators
It includes standard mutation operators and a separate set of experimental operators. source
Price and license
The project is licensed under Apache License 2.0; the page does not state a price. source
Purpose
MutPy is a mutation testing tool for Python source code that evaluates the quality of software tests. source
Purpose
MutPy is a mutation testing tool for Python source code that evaluates the quality of software tests. source
Python versions
The README describes support for Python 3.3 and later. source
Release history
PyPI lists version 0.6.1, released November 17, 2019, as the latest release. source
Reports
It can generate YAML and HTML reports. source
Reports
MutPy can generate YAML and HTML reports and colorful console output. source
Support and security
The repository page has an Issues section; it does not state a support service or security certification. source
Test runners
It supports unittest by default and pytest as an experimental runner. source

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