Add coverage to Makefile

This commit is contained in:
Valentin Samir 2016-06-25 11:26:56 +02:00
parent 64b90c5077
commit 269cfb463b
2 changed files with 9 additions and 0 deletions

4
.gitignore vendored
View file

@ -1,5 +1,7 @@
*.pyc
*.egg-info
*~
*.swp
build/
bootstrap3
@ -10,3 +12,5 @@ manage.py
.tox
test_venv
.coverage
htmlcov/

View file

@ -44,3 +44,8 @@ test_project: test_venv test_venv/cas/manage.py
run_test_server: test_project
test_venv/bin/python test_venv/cas/manage.py runserver
coverage: test_venv
test_venv/bin/pip install coverage
test_venv/bin/coverage run --source='cas_server' run_tests
test_venv/bin/coverage html