Skip to content

Commit a2bbbae

Browse files
committed
Use pytest-html when running its own tests
It does enable pytest-html reporting on its own test runs, so we can easily see the outcome of the testing. This will also allow publishing the results on CI/CD pipelines. Reports are generated in the same location as tox logs, so they do not overlap.
1 parent f0fbe2a commit a2bbbae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ deps =
1313
pytest-rerunfailures
1414
pytest-mock
1515
py{36,37,py3}-ansi2html: ansi2html
16-
commands = pytest -v -r a {posargs}
16+
commands = pytest -v -r a --color=yes --html={envlogdir}/report.html --self-contained-html {posargs}
1717

1818
[testenv:linting]
1919
skip_install = True

0 commit comments

Comments
 (0)