~amirouche/mutation

ref: 53cf8dc695fb28c3c5040377b00e1dcf6fe5de17 mutation/README.md -rw-r--r-- 686 bytes
53cf8dc6Amirouche add example of false-positive error. 7 months ago

#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.