PonyConf/coverage.sh

13 lines
295 B
Bash
Raw Normal View History

2016-07-05 21:25:20 +00:00
#!/bin/bash
. venv/bin/activate
which coverage >/dev/null 2>&1
if [ "$?" -ne 0 ]; then
pip install coverage
fi
coverage run --branch --source=accounts,ponyconf,proposals,conversations --omit=*/migrations/*,*/apps.py,ponyconf/wsgi.py manage.py test
coverage html
xdg-open htmlcov/index.html