使用 mutmut 的变异运行来对 Python 测试套件进行压力测试
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/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/boxed/mutmut/HEAD/README.rst
Documentation
- https://mutmut.readthedocs.io/