@@ -25,7 +25,8 @@ commands =
25
25
coverage: coverage report
26
26
passenv = USER USERNAME COVERAGE_* TRAVIS
27
27
setenv =
28
- # configuration if a user runs tox with a "coverage" factor, for example "tox -e py37-coverage"
28
+ # Configuration to run with coverage similar to Travis/Appveyor, e.g.
29
+ # "tox -e py37-coverage".
29
30
coverage: _PYTEST_TOX_COVERAGE_RUN =coverage run -m
30
31
coverage: _PYTEST_TOX_EXTRA_DEP =coverage-enable-subprocess
31
32
coverage: COVERAGE_FILE ={toxinidir}/.coverage
@@ -52,24 +53,24 @@ commands = pre-commit run --all-files --show-diff-on-failure
52
53
[testenv:py27-xdist]
53
54
extras = testing
54
55
deps =
56
+ {[testenv]deps}
55
57
pytest-xdist>=1.13
56
- {env:_PYTEST_TOX_EXTRA_DEP:}
57
58
commands =
58
59
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest -n auto {posargs}
59
60
60
61
[testenv:py37-xdist]
61
62
# NOTE: copied from above due to https://github.com/tox-dev/tox/issues/706.
62
63
extras = testing
63
64
deps =
65
+ {[testenv]deps}
64
66
pytest-xdist>=1.13
65
- {env:_PYTEST_TOX_EXTRA_DEP:}
66
67
commands = {[testenv:py27-xdist]commands}
67
68
68
69
[testenv:py27-pexpect]
69
70
platform = linux|darwin
70
71
deps =
72
+ {[testenv]deps}
71
73
pexpect
72
- {env:_PYTEST_TOX_EXTRA_DEP:}
73
74
commands =
74
75
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/test_pdb.py testing/test_terminal.py testing/test_unittest.py}
75
76
@@ -81,8 +82,8 @@ commands = {[testenv:py27-pexpect]commands}
81
82
[testenv:py27-nobyte]
82
83
extras = testing
83
84
deps =
85
+ {[testenv]deps}
84
86
pytest-xdist>=1.13
85
- {env:_PYTEST_TOX_EXTRA_DEP:}
86
87
distribute = true
87
88
setenv =
88
89
{[testenv]setenv}
@@ -92,8 +93,8 @@ commands =
92
93
93
94
[testenv:py27-trial]
94
95
deps =
96
+ {[testenv]deps}
95
97
twisted
96
- {env:_PYTEST_TOX_EXTRA_DEP:}
97
98
commands =
98
99
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/test_unittest.py}
99
100
@@ -103,8 +104,8 @@ commands = {[testenv:py27-trial]commands}
103
104
104
105
[testenv:py27-numpy]
105
106
deps =
107
+ {[testenv]deps}
106
108
numpy
107
- {env:_PYTEST_TOX_EXTRA_DEP:}
108
109
commands =
109
110
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:testing/python/approx.py}
110
111
@@ -138,8 +139,8 @@ commands =
138
139
basepython = python3
139
140
skipsdist = True
140
141
deps =
142
+ {[testenv]deps}
141
143
PyYAML
142
- {env:_PYTEST_TOX_EXTRA_DEP:}
143
144
commands =
144
145
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest doc/en
145
146
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest
0 commit comments