Merge "Make pytest run generate html reports"

This commit is contained in:
Zuul 2019-04-16 16:29:57 +00:00 committed by Gerrit Code Review
commit 492ebd2431
4 changed files with 13 additions and 4 deletions

View File

@ -29,3 +29,7 @@ universal = 1
[pbr]
warnerrors = False
[tool:pytest]
norecursedirs = .git .tox dist
log_cli = true

View File

@ -1,6 +1,8 @@
pytest
pytest-html
pytest-cov
ansi2html # GPL (soft-dependency of pytest-html)
pytest # MIT
pytest-cov # MIT
pytest-html # MPL 2.0
pytest-xdist # MIT
mock
requests
pprint

View File

@ -14,7 +14,8 @@ whitelist_externals =
commands_pre =
pip install -q bindep
bindep test
commands = pytest {posargs:--cov=emit_releases_file} scripts/emit_releases_file
commands =
python -m pytest --html={envlogdir}/reports.html --self-contained-html {posargs:--cov=emit_releases_file}
[testenv:venv]
basepython = python3

View File

@ -17,6 +17,8 @@
jobs:
- openstack-tox-linters
- openstack-tox-py27: &files
success-url: "tox/reports.html"
failure-url: "tox/reports.html"
files:
- ^bindep.txt$
- ^requirements.txt$