Add a coverage job for Python 3 to tox

This commit is contained in:
Pradyun Gedam 2017-11-14 12:03:01 +05:30
parent e9a0e4c3cd
commit afbbacf136
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
4 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,4 @@
[run]
branch = True
omit =
pip/_vendor/*
src/pip/_vendor/*

1
.gitignore vendored
View File

@ -19,6 +19,7 @@ docs/build/
# Unit test / coverage reports
.tox/
htmlcov/
.coverage
.coverage.*
.cache

View File

@ -2,6 +2,7 @@ freezegun
pretend
pytest
pytest-catchlog
pytest-cov
pytest-rerunfailures
pytest-timeout
pytest-xdist

View File

@ -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