Change xml coverage capture location in tox 60/4860/1 cherry
authorTimo Tietavainen <timo.tietavainen@nokia.com>
Mon, 19 Oct 2020 14:37:52 +0000 (17:37 +0300)
committerTimo Tietavainen <timo.tietavainen@nokia.com>
Mon, 19 Oct 2020 14:37:52 +0000 (17:37 +0300)
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 <timo.tietavainen@nokia.com>
Change-Id: I3b890b498ef98a470ba5e319117b692f9a0ff3f0

.gitignore
ricsdl-package/tox.ini

index 6b9e6e3..f717486 100644 (file)
@@ -50,7 +50,6 @@ coverage.xml
 *.py,cover
 .hypothesis/
 .pytest_cache/
-xunit-results.xml
 
 # Translations
 *.mo
index aed734e..ba68b9d 100644 (file)
@@ -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]