From db40b7eb916bbff2d0a4e4a8b5340a3ef866611f Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 16 Jul 2015 12:39:01 +0100 Subject: [PATCH] Add coverage to runtests. Closes #2936. --- requirements/requirements-testing.txt | 1 + runtests.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements/requirements-testing.txt b/requirements/requirements-testing.txt index a8d5d3229..6900028d3 100644 --- a/requirements/requirements-testing.txt +++ b/requirements/requirements-testing.txt @@ -1,3 +1,4 @@ # PyTest for running the tests. pytest==2.6.4 pytest-django==2.8.0 +pytest-cov==1.8.1 diff --git a/runtests.py b/runtests.py index f795829b5..e99cc65ad 100755 --- a/runtests.py +++ b/runtests.py @@ -8,7 +8,7 @@ import sys import pytest PYTEST_ARGS = { - 'default': ['tests', '--tb=short', '-s'], + 'default': ['tests', '--tb=short', '-s', '--cov', 'rest_framework'], 'fast': ['tests', '--tb=short', '-q', '-s'], }