Skip to content

Instantly share code, notes, and snippets.

@Eduard-gan
Created August 3, 2020 13:43
Show Gist options
  • Save Eduard-gan/5ebf1acdccaf21ea1b7358bae425a252 to your computer and use it in GitHub Desktop.
Save Eduard-gan/5ebf1acdccaf21ea1b7358bae425a252 to your computer and use it in GitHub Desktop.
Typical pytest launch with pytest-cov package installed
pytest tests/test_quiz.py --disable-pytest-warnings --cov=business_logic.credit_history_quiz --cov-report term-missing
In PyChrm that would be
Additional arguments:
--disable-pytest-warnings --cov=business_logic.credit_history_quiz --cov-report term-missing
There is a strange bug in pycharm which leads to warnings, so dependency of pytest-cov should be downgraded:
pip install pytest-cov
pip install 'coverage<5'
requirements.txt:
pytest-cov==2.10.0
coverage==4.5.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment