Merge "Make pytest run generate html reports"
This commit is contained in:
commit
492ebd2431
|
@ -29,3 +29,7 @@ universal = 1
|
|||
|
||||
[pbr]
|
||||
warnerrors = False
|
||||
|
||||
[tool:pytest]
|
||||
norecursedirs = .git .tox dist
|
||||
log_cli = true
|
||||
|
|
|
@ -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
|
||||
|
|
3
tox.ini
3
tox.ini
|
@ -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
|
||||
|
|
|
@ -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$
|
||||
|
|
Loading…
Reference in New Issue