@@ -40,7 +40,7 @@ passenv =
4040# allow tox virtualenv to upgrade pip/wheel/setuptools
4141download = true
4242commands =
43- pytest {posargs:--cov-config =pyproject.toml --cov =scrapy --cov-report = --cov-report =term-missing --cov-report =xml --junitxml =testenv.junit.xml -ojunit_family =legacy --durations =10docs scrapy tests --doctest-modules}
43+ pytest {posargs:--cov-config =pyproject.toml --cov =scrapy --cov-report = --cov-report =term-missing --cov-report =xml --junitxml =testenv.junit.xml -ojunit_family =legacy --durations =10 scrapy tests --doctest-modules}
4444
4545[testenv:typing]
4646basepython = python3.9
@@ -120,7 +120,6 @@ deps =
120120setenv =
121121_SCRAPY_PINNED =true
122122commands =
123- ; tests for docs fail with parsel < 1.8.0
124123 pytest {posargs:--cov-config =pyproject.toml --cov =scrapy --cov-report =xml --cov-report = --junitxml =pinned.junit.xml -ojunit_family =legacy --durations =10 scrapy tests}
125124
126125[testenv:pinned]
@@ -182,7 +181,7 @@ setenv =
182181basepython = pypy3
183182commands =
184183; not enabling coverage as it significantly increases the run time
185- pytest {posargs:--durations =10docs scrapy tests}
184+ pytest {posargs:--durations =10 scrapy tests}
186185
187186[testenv:pypy3-extra-deps]
188187basepython = pypy3
@@ -209,7 +208,7 @@ deps =
209208w3lib ==1.20.0
210209zope.interface ==5.1.0
211210commands =
212- ; disablingboth coverage and docs tests
211+ ; disabling coverage
213212 pytest {posargs:--durations =10 scrapy tests}
214213setenv =
215214 {[pinned]setenv}
@@ -225,10 +224,13 @@ setenv =
225224[testenv:docs]
226225basepython = python3
227226changedir = {[docs]changedir}
228- deps = {[docs]deps}
227+ deps =
228+ {[test-requirements]deps}
229+ {[docs]deps}
229230setenv = {[docs]setenv}
230231commands =
231232 sphinx-build -W -b html . {envtmpdir}/html
233+ pytest
232234
233235[testenv:docs-coverage]
234236basepython = python3