Coverage Reports - pathfinder-analytics-uk/dab_project GitHub Wiki
Links and Resources
Project Code
.coveragerc
[run]
omit =
# any files or globs you want to exclude
src/dab_project/*.py
src/__init__.py
src/*/__init__.py
Commands
Installing pytest-cov
Install it in the target environments (.venv_pyspark and .venv_dbc)
pip install pytest-cov
Runs your tests with coverage measurement on the src directory and displays the coverage report in the terminal
pytest --cov=src --cov-report=term
Displays the coverage report in html format
pytest --cov=src --cov-report=html
Opens the html coverage report in your browser
open htmlcov/index.html