Skip to content
Snippets Groups Projects
Commit 89385a9d authored by Tamas Kiss's avatar Tamas Kiss
Browse files

Added coverage to test requirements

parent 92383805
No related branches found
No related tags found
No related merge requests found
# .coveragerc to control coverage.py
[run]
branch = True
source = coffee_bot
[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
ignore_errors = True
[html]
directory = coverage_html_report
......@@ -20,4 +20,5 @@ pip install -r requirements-local.txt
```
The supported IDE for this project is VScode
run tests by `python -m pytest`
To run tests: `python -m pytest`
To run coverage: `coverage run -m pytest; coverage report -m`
......@@ -3,3 +3,4 @@
mock==4.0.3
pytest==6.2.2
pylint==2.7.1
coverage==5.5
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment