[Pytest-commit] Issue #361: Cannot gen xml coverage report with py.test and pytest-cov (hpk42/tox)
SDET_Liang
issues-reply at bitbucket.org
Thu Sep 8 03:52:30 EDT 2016
New issue 361: Cannot gen xml coverage report with py.test and pytest-cov
https://bitbucket.org/hpk42/tox/issues/361/cannot-gen-xml-coverage-report-with-pytest
SDET_Liang:
With following tox.ini, coverage.xml is not generated, but .covearge is created.
The output is listed below.
tox.ini
commands = py.test ./tests --junitxml=unittest-{envname}.xml --cov=mypkg --cov-report xml
ouptut
py27 runtests: PYTHONHASHSEED='1204855125'
py27 runtests: commands[0] | py.test ./tests --junitxml=unittest-py27.xml --cov=mypkg --cov-report xml
============================= test session starts ==============================
platform linux2 -- Python 2.7.10, pytest-2.9.1, py-1.4.31, pluggy-0.3.1
rootdir: /data/jenkins/workspace/mypkg-unittest, inifile:
plugins: cov-2.3.0
tests/test_sth.py ..........
generated xml file: /data/jenkins/workspace/mypkg-unittest/unittest-py27.xml
---------- coverage: platform linux2, python 2.7.10-final-0 ----------
Coverage XML written to file coverage.xml
========================== 10 passed in 21.87 seconds ==========================
___________________________________ summary ____________________________________
py27: commands succeeded
More information about the pytest-commit
mailing list