Add coverage to Makefile
This commit is contained in:
parent
64b90c5077
commit
269cfb463b
2 changed files with 9 additions and 0 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,5 +1,7 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
*.egg-info
|
*.egg-info
|
||||||
|
*~
|
||||||
|
*.swp
|
||||||
|
|
||||||
build/
|
build/
|
||||||
bootstrap3
|
bootstrap3
|
||||||
|
@ -10,3 +12,5 @@ manage.py
|
||||||
|
|
||||||
.tox
|
.tox
|
||||||
test_venv
|
test_venv
|
||||||
|
.coverage
|
||||||
|
htmlcov/
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -44,3 +44,8 @@ test_project: test_venv test_venv/cas/manage.py
|
||||||
|
|
||||||
run_test_server: test_project
|
run_test_server: test_project
|
||||||
test_venv/bin/python test_venv/cas/manage.py runserver
|
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
|
||||||
|
|
Loading…
Reference in a new issue