summaryrefslogtreecommitdiffstats
path: root/dmaap/tox.ini
diff options
context:
space:
mode:
authorAndrew Gauld <ag1282@att.com>2018-02-22 14:55:37 -0500
committerAndrew Gauld <ag1282@att.com>2018-02-22 14:56:35 -0500
commit6e6babd96b389602e6ab4b3550a0c3db4f9ae7c6 (patch)
treeeaadd3605e818063bf492b71a079b0c0aa4ecc87 /dmaap/tox.ini
parentd154b4c606f4af5873676fed4bea39f8b91adee6 (diff)
Make SONAR code coverage work
Change-Id: Id54f9199d4ac7a1a501a875743fa35aecbe60ac4 Issue-ID: DCAEGEN2-355 Signed-off-by: Andrew Gauld <ag1282@att.com>
Diffstat (limited to 'dmaap/tox.ini')
-rw-r--r--dmaap/tox.ini12
1 files changed, 9 insertions, 3 deletions
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