~amirouche/mutation

f8397a4fbbaf89cbd6697bd6ecb5ee42b846d96f — Amirouche 7 months ago 9f52e21 v0.4.3
v0.4.3 (README++)
3 files changed, 26 insertions(+), 2 deletions(-)

M README.md
M mutation.py
M pyproject.toml
M README.md => README.md +22 -0
@@ 1,1 1,23 @@
# mutation

**beta**

`mutation` check that tests are robust.

```sh
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.

M mutation.py => mutation.py +1 -1
@@ 50,7 50,7 @@ from termcolor import colored
from tqdm import tqdm
from ulid import ULID

__version__ = (0, 4, 2)
__version__ = (0, 4, 3)


MINUTE = 60  # seconds

M pyproject.toml => pyproject.toml +3 -1
@@ 1,9 1,11 @@
[tool.poetry]
name = "mutation"
version = "0.4.2"
version = "0.4.3"
description = "test mutation for pytest."
authors = ["Amirouche <amirouche@hyper.dev>"]
license = "MIT"
readme = "README.md"
repository = "https://git.sr.ht/~amirouche/mutation"

[tool.poetry.dependencies]
python = "^3.7"