@@ -56,6 +56,7 @@ commands =
56
56
# tox run -e compile-assets,i18n-compile,py39-sphinx61-tests
57
57
# run tests without coverage
58
58
# tox run -e compile-assets,i18n-compile,py39-tests-no-cov
59
+ # by default we will retain playwright traces on failure
59
60
[testenv:py3{9,10,11,12}{,-sphinx61,-sphinxdev,}-tests{,-no-cov}]
60
61
description = " Run tests Python and Sphinx versions. If a Sphinx version is specified, it will use that version vs the default in pyproject.toml"
61
62
# need to ensure the package is installed in editable mode
@@ -75,8 +76,8 @@ allowlist_externals=
75
76
bash
76
77
commands =
77
78
bash -c ' if [[ "{env:GITHUB_ACTIONS:}" == "true" ]]; then playwright install --with-deps; else playwright install; fi'
78
- py3{9,10,11,12}{,-sphinx61,-sphinxdev,}-tests: coverage run -m pytest -m " not a11y" {posargs}
79
- py3{9,10,11,12}{,-sphinx61,-sphinxdev,}-tests-no-cov: pytest -m " not a11y" {posargs}
79
+ py3{9,10,11,12}{,-sphinx61,-sphinxdev,}-tests: coverage run -m pytest -m " not a11y" {posargs:-- tracing =retain-on-failure }
80
+ py3{9,10,11,12}{,-sphinx61,-sphinxdev,}-tests-no-cov: pytest -m " not a11y" {posargs:-- tracing =retain-on-failure }
80
81
81
82
# run accessibility tests with Playwright and axe-core
82
83
# compiling the assets is needed before running the tests
0 commit comments