Document new testing setup

This commit is contained in:
Jelle van der Waa 2021-09-13 22:29:59 +02:00
parent b41222d50e
commit e909c1d813
No known key found for this signature in database
GPG Key ID: C06086337C50773E
2 changed files with 12 additions and 5 deletions

View File

@ -94,16 +94,19 @@ In local\_settings.py add entries to set EMAIL\_HOST to 'localhost' and EMAIL\_P
# Running tests and coverage
Install the test dependencies:
pip install -r requirements_test.txt
To the unittests execute the following commands:
./manage.py collectstatic --noinput
./manage.py test
make collectstatic
make test
Running coverage:
pip install coverage
coverage run --omit='env*' --source='.' manage.py test
coverage report
make coverage
make open-coverage
# Django Debug toolbar

4
requirement_tests.txt Normal file
View File

@ -0,0 +1,4 @@
pylint
pytest
pytest-cov
pytest-django