@@ -20,11 +20,12 @@ envlist =
20
20
[testenv]
21
21
commands =
22
22
{env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:{env:_PYTEST_TOX_DEFAULT_POSARGS:}}
23
+ doctesting: {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest
23
24
coverage: coverage combine
24
25
coverage: coverage report -m
25
26
passenv = USER USERNAME COVERAGE_* TRAVIS PYTEST_ADDOPTS TERM
26
27
setenv =
27
- _PYTEST_TOX_DEFAULT_POSARGS ={env:_PYTEST_TOX_POSARGS_LSOF:} {env:_PYTEST_TOX_POSARGS_XDIST:}
28
+ _PYTEST_TOX_DEFAULT_POSARGS ={env:_PYTEST_TOX_POSARGS_DOCTESTING:} {env: _PYTEST_TOX_POSARGS_LSOF:} {env:_PYTEST_TOX_POSARGS_XDIST:}
28
29
29
30
# Configuration to run with coverage similar to CI, e.g.
30
31
# "tox -e py37-coverage".
@@ -33,13 +34,16 @@ setenv =
33
34
coverage: COVERAGE_FILE ={toxinidir}/.coverage
34
35
coverage: COVERAGE_PROCESS_START ={toxinidir}/.coveragerc
35
36
37
+ doctesting: _PYTEST_TOX_POSARGS_DOCTESTING =doc/en
38
+
36
39
nobyte: PYTHONDONTWRITEBYTECODE =1
37
40
38
41
lsof: _PYTEST_TOX_POSARGS_LSOF =--lsof
39
42
40
43
xdist: _PYTEST_TOX_POSARGS_XDIST =-n auto
41
44
extras = testing
42
45
deps =
46
+ doctesting: PyYAML
43
47
oldattrs: attrs ==17.4.0
44
48
oldattrs: hypothesis<=4.38.1
45
49
numpy: numpy
@@ -90,16 +94,6 @@ deps = -r{toxinidir}/doc/en/requirements.txt
90
94
commands =
91
95
sphinx-build -W -q --keep-going -b linkcheck . _build
92
96
93
- [testenv:doctesting]
94
- basepython = python3
95
- skipsdist = True
96
- deps =
97
- {[testenv]deps}
98
- PyYAML
99
- commands =
100
- {env:_PYTEST_TOX_COVERAGE_RUN:} pytest doc/en
101
- {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest
102
-
103
97
[testenv:regen]
104
98
changedir = doc/en
105
99
skipsdist = True
0 commit comments