From 6e6babd96b389602e6ab4b3550a0c3db4f9ae7c6 Mon Sep 17 00:00:00 2001 From: Andrew Gauld Date: Thu, 22 Feb 2018 14:55:37 -0500 Subject: Make SONAR code coverage work Change-Id: Id54f9199d4ac7a1a501a875743fa35aecbe60ac4 Issue-ID: DCAEGEN2-355 Signed-off-by: Andrew Gauld --- dmaap/tox.ini | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'dmaap/tox.ini') diff --git a/dmaap/tox.ini b/dmaap/tox.ini index 9498c82..9a23f83 100644 --- a/dmaap/tox.ini +++ b/dmaap/tox.ini @@ -20,7 +20,13 @@ envlist = py27 [testenv] deps= - pytest - cloudify==3.4 requests -commands=pytest + cloudify==3.4 + pytest + coverage + pytest-cov +setenv = + PYTHONPATH={toxinidir} +commands= + pytest --junitxml xunit-results.xml --cov dmaapcontrollerif --cov consulif --cov dmaapplugin --cov-report xml + coverage xml -- cgit