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 <timo.tietavainen@nokia.com>
Change-Id: I3b890b498ef98a470ba5e319117b692f9a0ff3f0
diff --git a/.gitignore b/.gitignore
index 6b9e6e3..f717486 100644
--- a/.gitignore
+++ b/.gitignore
@@ -50,7 +50,6 @@
*.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 @@
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]