From 269cfb463b1fdb0ac11556d041eedbe79267db64 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Sat, 25 Jun 2016 11:26:56 +0200 Subject: [PATCH] Add coverage to Makefile --- .gitignore | 4 ++++ Makefile | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 0b5a2a6..42d76c1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ *.pyc *.egg-info +*~ +*.swp build/ bootstrap3 @@ -10,3 +12,5 @@ manage.py .tox test_venv +.coverage +htmlcov/ diff --git a/Makefile b/Makefile index e5b19f1..df1a6a6 100644 --- a/Makefile +++ b/Makefile @@ -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