Stress-test Python test suites with mutation runs from mutmut
Use mutation testing to expose weak Python tests before merge or release by checking which code changes survive the current test suite.
Prerequisites
Python 3, pip, mutmut, pytest-compatible test suite
Installation
Use the upstream install or setup path that matches your environment:
- pip install mutmut
Requirements and caveats from upstream:
- mutmut - python mutation tester
- Mutmut is a mutation testing system for Python, with a strong focus on ease
- this article https://kodare.net/2016/12/01/mutmut-a-python-mutation-testing-system.html_.
Basic usage or getting-started notes:
You can get started with a simple:
Source: https://github.com/boxed/mutmut
Extracted from upstream docs: https://raw.githubusercontent.com/boxed/mutmut/HEAD/README.rst