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
|
||||
|
||||
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
4
requirement_tests.txt
Normal file
@ -0,0 +1,4 @@
|
||||
pylint
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-django
|
Loading…
Reference in New Issue
Block a user