From: Timo Tietavainen Date: Mon, 19 Oct 2020 14:37:52 +0000 (+0300) Subject: Change xml coverage capture location in tox X-Git-Tag: 2.1.1~2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=831ae080538a447fd81172a996e43188752a87e6;p=ric-plt%2Fsdlpy.git Change xml coverage capture location in tox The tox init file is changed to write a coverage data report under /tmp/tests.xml. Report file under tmp directory is more easily accessible by a post processing tool than report file under sdlpy. Signed-off-by: Timo Tietavainen Change-Id: I3b890b498ef98a470ba5e319117b692f9a0ff3f0 --- diff --git a/.gitignore b/.gitignore index 6b9e6e3..f717486 100644 --- a/.gitignore +++ b/.gitignore @@ -50,7 +50,6 @@ coverage.xml *.py,cover .hypothesis/ .pytest_cache/ -xunit-results.xml # Translations *.mo diff --git a/ricsdl-package/tox.ini b/ricsdl-package/tox.ini index aed734e..ba68b9d 100644 --- a/ricsdl-package/tox.ini +++ b/ricsdl-package/tox.ini @@ -31,7 +31,7 @@ setenv = DBAAS_SERVICE_HOST=localhost DBAAS_SERVICE_PORT=6379 commands = - pytest --junitxml xunit-results.xml --cov ricsdl --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 + pytest --cov ricsdl --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 --junitxml=/tmp/tests.xml coverage xml -i [testenv:flake8]