From 831ae080538a447fd81172a996e43188752a87e6 Mon Sep 17 00:00:00 2001 From: Timo Tietavainen Date: Mon, 19 Oct 2020 17:37:52 +0300 Subject: [PATCH] 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 --- .gitignore | 1 - ricsdl-package/tox.ini | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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] -- 2.16.6