Allow to view logs from pytest
This patch allows to view application logs in failed test reports from console. Change-Id: I94d036a4b962108768deb59739bce54903184469
This commit is contained in:
parent
8263c617b7
commit
cc99f5cca7
@ -6,6 +6,7 @@ hacking<0.11,>=0.10.0
|
||||
pytest>=2.7,<=3.0.2 # MIT
|
||||
pytest-cov>=2.2.1,<=2.3.1 # MIT
|
||||
pytest-html>=1.10.0,<=1.10.0 # Mozilla Public License 2.0 (MPL 2.0)
|
||||
pytest-logging==2015.11.4 # Apache-2.0
|
||||
|
||||
coverage>=3.6
|
||||
ddt>=1.0.1
|
||||
|
2
tox.ini
2
tox.ini
@ -14,7 +14,7 @@ whitelist_externals = find
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands =
|
||||
find . -type f -name "*.pyc" -delete
|
||||
py.test --html={envlogdir}/pytest_results.html --self-contained-html --durations=10 "os_faults/tests" {posargs}
|
||||
py.test -vvvv --html={envlogdir}/pytest_results.html --self-contained-html --durations=10 "os_faults/tests" {posargs}
|
||||
basepython = python2.7
|
||||
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user