ref: f8397a4fbbaf89cbd6697bd6ecb5ee42b846d96f mutation/README.md -rw-r--r-- 657 bytes
f8397a4fAmirouche v0.4.3 (README++) 7 months ago



mutation check that tests are robust.

pip install mutation
mutation play tests.py --include="src/*.py" --exclude="tests.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.