~amirouche/mutation

mutation testing for pytest
add example of false-positive error.

clone

read-only
https://git.sr.ht/~amirouche/mutation
read/write
git@git.sr.ht:~amirouche/mutation

You can also use your local clone with git send-email.

#mutation

beta

mutation check that tests are robust.

pip install mutation
mutation play tests.py --include="src/*.py"
mutation replay

Both --include and --exclude are optional but highly recommended to avoid the production of useless mutations. mutation will only mutate code that has test coverage, hence it works better with a high coverage.

mutation will detect whether the tests can be run in parallel. It is recommended to make the test suite work in parallel to speed up the work of mutation.

Also, it is better to work with a random seed, otherwise add the option --randomly-seed=n that works.