Created
August 3, 2020 13:43
-
-
Save Eduard-gan/5ebf1acdccaf21ea1b7358bae425a252 to your computer and use it in GitHub Desktop.
Typical pytest launch with pytest-cov package installed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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