Run Django tests with coverage
This commit is contained in:
parent
ebfbc3f285
commit
a57262ec5e
3 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -4,6 +4,8 @@ set -e
|
|||
|
||||
export PATH=env/bin:${PATH}
|
||||
|
||||
coverage run manage.py test $@
|
||||
|
||||
echo "> Running formatter..."
|
||||
black website/ --check
|
||||
|
||||
|
|
|
@ -14,3 +14,6 @@ force_grid_wrap=0
|
|||
use_parentheses=True
|
||||
line_length=88
|
||||
not_skip=__init__.py
|
||||
|
||||
[coverage:run]
|
||||
source = "website"
|
||||
|
|
Reference in a new issue