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',