diff --git a/.gitignore b/.gitignore index 882a904..ccbba92 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ tests/__pycache__/ _build/ .hypothesis/ +.mutmut-cache diff --git a/mutmut_config.py b/mutmut_config.py new file mode 100644 index 0000000..3e24268 --- /dev/null +++ b/mutmut_config.py @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: LGPL-2.1-only +# Copyright 2022 Jookia + +import os.path + +def pre_mutation(context): + dirname, filename = os.path.split(context.filename) + testname = "test_" + os.path.splitext(filename)[0] + context.config.test_command += ' -k ' + testname diff --git a/requirements.txt b/requirements.txt index 79f0437..f18e070 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,5 +3,6 @@ pytest pytest-randomly hypothesis +mutmut flake8 flake8-bugbear