summaryrefslogtreecommitdiffstats
path: root/cdap/cdapplugin
diff options
context:
space:
mode:
authorAndrew Gauld <ag1282@att.com>2018-02-22 11:35:58 -0500
committerAndrew Gauld <ag1282@att.com>2018-02-22 11:36:31 -0500
commitb758d3686595c03eeb1bfe4f50b86f28b7b8c86f (patch)
treed39f5509e654f1756bd80853275b34b2cd2a6872 /cdap/cdapplugin
parentbc19a3632f8df30e28876418f00cd96caa6dfa91 (diff)
Make SONAR code coverage work
Change-Id: I8a61f287d439a5bf0b2cb203e31b514a2cae0a5e Issue-ID: DCAEGEN2-355 Signed-off-by: Andrew Gauld <ag1282@att.com>
Diffstat (limited to 'cdap/cdapplugin')
-rw-r--r--cdap/cdapplugin/.coveragerc4
-rw-r--r--cdap/cdapplugin/tox.ini6
2 files changed, 5 insertions, 5 deletions
diff --git a/cdap/cdapplugin/.coveragerc b/cdap/cdapplugin/.coveragerc
index 9d9d9a2..7e87c60 100644
--- a/cdap/cdapplugin/.coveragerc
+++ b/cdap/cdapplugin/.coveragerc
@@ -23,7 +23,3 @@ exclude_lines =
if __name__ == .__main__.:
ignore_errors = True
-
-[xml]
-output = coverage-reports/coverage-cdapcloudify.xml
-
diff --git a/cdap/cdapplugin/tox.ini b/cdap/cdapplugin/tox.ini
index 246851e..2f4bb03 100644
--- a/cdap/cdapplugin/tox.ini
+++ b/cdap/cdapplugin/tox.ini
@@ -7,4 +7,8 @@ deps=
pytest
coverage
pytest-cov
-commands=pytest --junitxml xunit-reports/xunit-result-cdapcloudify.xml --cov {envsitepackagesdir} --cov-report=xml
+setenv=
+ PYTHONPATH={toxinidir}
+commands=
+ pytest --junitxml xunit-results.xml --cov cdapcloudify --cov-report xml
+ coverage xml