diff --git a/.coveragerc b/.coveragerc index 7a2f4b47c..5f833c94a 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,4 +1,4 @@ [run] branch = True omit = - pip/_vendor/* + src/pip/_vendor/* diff --git a/.gitignore b/.gitignore index 417786fac..1d842203b 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ docs/build/ # Unit test / coverage reports .tox/ +htmlcov/ .coverage .coverage.* .cache diff --git a/dev-requirements.txt b/dev-requirements.txt index a1bfbb6ee..25549125e 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -2,6 +2,7 @@ freezegun pretend pytest pytest-catchlog +pytest-cov pytest-rerunfailures pytest-timeout pytest-xdist diff --git a/tox.ini b/tox.ini index cb5a262cc..e5cd70a57 100644 --- a/tox.ini +++ b/tox.ini @@ -14,6 +14,10 @@ commands = py.test --timeout 300 [] install_command = python -m pip install {opts} {packages} usedevelop = True +[testenv:coverage-py3] +basepython = python3 +commands = py.test --timeout 300 --cov=pip --cov-report=term-missing --cov-report=xml --cov-report=html tests/unit {posargs} + [testenv:docs] deps = -r{toxinidir}/docs-requirements.txt basepython = python2.7