Add xml coverage capture location to tox 54/4854/1
authorE. Scott Daniels <daniels@research.att.com>
Fri, 16 Oct 2020 14:18:32 +0000 (10:18 -0400)
committerE. Scott Daniels <daniels@research.att.com>
Fri, 16 Oct 2020 14:18:32 +0000 (10:18 -0400)
The tox init file is changed to add a filename for the capture
of coverage data from the unit tests.

Issue-ID: RIC-659

Signed-off-by: E. Scott Daniels <daniels@research.att.com>
Change-Id: I349b863ba46ac92a71d6af6fb537a8682dc85a88

tox.ini

diff --git a/tox.ini b/tox.ini
index 98c7be1..5142bb1 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -31,7 +31,7 @@ setenv =
 
 commands =
     # add -s flag after pytest to show logs immediately instead of delaying
-    pytest --cov ricxappframe --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70
+    pytest --cov ricxappframe --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 --junitxml=/tmp/tests.xml
     coverage xml -i
 
 [testenv:flake8]