How good are the tests you've been writing all day, and yesterday?
We're going to use mut.py to run our mutation tests. There are a LOT of options for mutation testing in python, if you find a better one, tell me about it.
Installing mut.py into the environment
pipenv install --dev mutpy
Running mut.py
pipenv run mut.py -c -m -e --runner pytest -t bowling_game -u test_bowling_game
-cmakes the output pretty-eincludes experimental mutations-mprints the mutations to screen--runner pytesttells it to use pytest to run the mutations-t bowling_gametells it to mutate the bowling game module-utells it to run the test_bowling_game module to check that it works
Run this for the bowling game kata completed branch
- What do you see?
- Fix the tests
- What do you see?
- Fix the tests
- What do you see?
- Fix the tests
Note: Given this might turn out to be hard (I don't know how good the codebase you're working on is going to be), ask for help or group up with someone else who has managed it if you get totally stuck