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 --- sshkeyshare/tox.ini | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sshkeyshare/tox.ini') diff --git a/sshkeyshare/tox.ini b/sshkeyshare/tox.ini index 3a6c714..29b7a45 100644 --- a/sshkeyshare/tox.ini +++ b/sshkeyshare/tox.ini @@ -2,6 +2,12 @@ envlist = py27 [testenv] deps= - pytest cloudify==3.4 -commands=pytest + pytest + coverage + pytest-cov +setenv= + PYTHONPATH={toxinidir} +commands= + pytest --junitxml xunit-results.xml --cov sshkeyshare --cov-report xml + coverage xml -- cgit 1.2.3-korg