From 53677b2b3ee8079acb1de03ec68151cc233055a7 Mon Sep 17 00:00:00 2001 From: Adam Chainz Date: Mon, 11 Apr 2016 17:17:41 +0100 Subject: [PATCH] Tests - add coverage Fixes #63. --- setup.cfg | 4 +++- tests/requirements.txt | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 88b46fb9..ddc512e8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,6 +8,8 @@ known_first_party = gargoyle,testapp [pytest] addopts = -p no:doctest - + --cov=gargoyle + --cov-report term-missing + --cov-fail-under 80 [wheel] universal = 1 diff --git a/tests/requirements.txt b/tests/requirements.txt index d0a544fd..56ff2f4e 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,4 +1,5 @@ docutils==0.12 +coverage==4.0.3 flake8==2.5.4 isort==4.2.5 mccabe==0.4.0 @@ -6,6 +7,7 @@ pep8==1.7.0 py==1.4.31 pyflakes==1.1.0 Pygments==2.1.3 +pytest-cov==2.2.1 pytest-django==2.9.1 pytest==2.9.1 sqlparse==0.1.19