diff --git a/dev-requirements.txt b/dev-requirements.txt index 9fb9c78..889ae33 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -9,3 +9,4 @@ flake8-builtins==1.5.2 flake8-comprehensions==3.2.2 flake8-mutable==1.2.0 flake8-tuple==0.4.1 +coverage==5.0.4 diff --git a/scripts/test.sh b/scripts/test.sh index 2810d47..9331707 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -4,6 +4,8 @@ set -e export PATH=env/bin:${PATH} +coverage run manage.py test $@ + echo "> Running formatter..." black website/ --check diff --git a/setup.cfg b/setup.cfg index e9892c6..2f86b76 100644 --- a/setup.cfg +++ b/setup.cfg @@ -14,3 +14,6 @@ force_grid_wrap=0 use_parentheses=True line_length=88 not_skip=__init__.py + +[coverage:run] +source = "website"