Coverage

Using the coverage tool, we can get some code analysis, including the total test coverage. For example, the following will run pytest through coverage. Then type coverage report to see the coverage report.

coverage run -m pytest
coverage report
docker compose -f docker-compose.yml exec web coverage run -m pytest
docker compose -f docker-compose.yml exec web coverage report