#!/usr/bin/env bash set -e set -x coverage run -m pytest tests/ coverage report # The HTML report is a convenience: a container run can leave htmlcov/ owned by # root, and failing here after a green suite reads like a test failure. coverage html --title "${@-coverage}" \ || echo " ! coverage html failed (htmlcov/ not writable? try 'make clean') — tests passed" >&2