PonyConf/coverage.sh

13 lines
186 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
2016-07-05 23:06:08 +00:00
coverage run manage.py test
2016-07-05 21:25:20 +00:00
coverage html
xdg-open htmlcov/index.html