Closed microamp closed 4 months ago
How to view the HTML coverage report locally:
Run
SNAPSHOT=$(git describe --abbrev=0) docker compose -f docker-compose.test.yml \
-f docker-compose.test-local-interactive.yml up --build
From another shell session, run
SNAPSHOT=$(git describe --abbrev=0) docker compose -f docker-compose.test.yml \
-f docker-compose.test-local-interactive.yml exec test bash
python -m coverage run manage.py test && python -m coverage report && python -m coverage html
View the HTML report on your host machine.
(cd htmlcov && python -m http.server)
before vs after: