From 5964161ea214ca8d7c1f26ae4e4538b067fe838e Mon Sep 17 00:00:00 2001 From: Boris Besemer Date: Mon, 28 Nov 2016 15:35:20 +0100 Subject: [PATCH] adds code coverage --- Makefile | 3 +++ setup.py | 1 + 2 files changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 6100cd1..670f7b3 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,9 @@ develop: clean requirements test: py.test --nomigrations --reuse-db tests/ +coverage: + py.test --cov=personalisation --cov-report=term-missing --cov-report=html + lint: flake8 isort flake8: diff --git a/setup.py b/setup.py index f90d52b..a20d964 100644 --- a/setup.py +++ b/setup.py @@ -8,6 +8,7 @@ install_requires = [ tests_require = [ 'pytest==3.0.4', + 'pytest-cov==2.4.0', 'pytest-django==3.0.0', 'pytest-sugar==0.7.1', 'freezegun==0.3.8',