Skip to content

Instantly share code, notes, and snippets.

@Eduard-gan
Created August 3, 2020 19:04
Show Gist options
  • Save Eduard-gan/8d210a7c1cda63871071690b57dbc22b to your computer and use it in GitHub Desktop.
Save Eduard-gan/8d210a7c1cda63871071690b57dbc22b to your computer and use it in GitHub Desktop.
Mutmut usage
pip install mutmut
mutmut run --runner 'python -m pytest -x tests/test_quiz.py' --paths-to-mutate business_logic/credit_history_quiz.py
mutmut results # Shows munants IDs (X here)
mutmut show X # Shows diff metant/original
mutmut apply X # Applies change from mutant to file
То stop certain line from mutation (Annoying on log lines) apply whitelisting comment on it: # pragma: no mutate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment