PonyConf/coverage.sh

13 lines
186 B
Bash
Executable File

#!/bin/bash
. venv/bin/activate
which coverage >/dev/null 2>&1
if [ "$?" -ne 0 ]; then
pip install coverage
fi
coverage run manage.py test
coverage html
xdg-open htmlcov/index.html