The application demonstrating how mutation testing works, presented at Pykonik Tech Talks #61.
Mutation tests are presented here using a simple game example: FizzBuzz.
Slides from the presentation can be found here.
- Python 3.9
-
Create a new, clean virtual environment with Python 3.9
-
Install requirements:
pip install -r requirements.txt
-
Run the FizzBuzz script:
python fizzbuzz.py 1 15
-
Run tests without mutations:
pytest
-
Run tests with mutations:
mutmut run mutmut results mutmut show <id>