Add coverage to runtests. Closes #2936.

This commit is contained in:
Tom Christie 2015-07-16 12:39:01 +01:00
parent a8acdbc388
commit db40b7eb91
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
# PyTest for running the tests. # PyTest for running the tests.
pytest==2.6.4 pytest==2.6.4
pytest-django==2.8.0 pytest-django==2.8.0
pytest-cov==1.8.1

View File

@ -8,7 +8,7 @@ import sys
import pytest import pytest
PYTEST_ARGS = { PYTEST_ARGS = {
'default': ['tests', '--tb=short', '-s'], 'default': ['tests', '--tb=short', '-s', '--cov', 'rest_framework'],
'fast': ['tests', '--tb=short', '-q', '-s'], 'fast': ['tests', '--tb=short', '-q', '-s'],
} }