Document new testing setup
This commit is contained in:
parent
b41222d50e
commit
e909c1d813
13
README.md
13
README.md
@ -94,16 +94,19 @@ In local\_settings.py add entries to set EMAIL\_HOST to 'localhost' and EMAIL\_P
|
|||||||
|
|
||||||
# Running tests and coverage
|
# Running tests and coverage
|
||||||
|
|
||||||
|
Install the test dependencies:
|
||||||
|
|
||||||
|
pip install -r requirements_test.txt
|
||||||
|
|
||||||
To the unittests execute the following commands:
|
To the unittests execute the following commands:
|
||||||
|
|
||||||
./manage.py collectstatic --noinput
|
make collectstatic
|
||||||
./manage.py test
|
make test
|
||||||
|
|
||||||
Running coverage:
|
Running coverage:
|
||||||
|
|
||||||
pip install coverage
|
make coverage
|
||||||
coverage run --omit='env*' --source='.' manage.py test
|
make open-coverage
|
||||||
coverage report
|
|
||||||
|
|
||||||
# Django Debug toolbar
|
# Django Debug toolbar
|
||||||
|
|
||||||
|
4
requirement_tests.txt
Normal file
4
requirement_tests.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
pylint
|
||||||
|
pytest
|
||||||
|
pytest-cov
|
||||||
|
pytest-django
|
Loading…
Reference in New Issue
Block a user