OnlineJudge/tools/runtest.sh

8 lines
158 B
Bash
Raw Normal View History

#!/usr/bin/env bash
coverage run --source='.' manage.py test
test_result=$?
if [ "$test_result" -eq 0 ];then
coverage html
open htmlcov/index.html
fi