summaryrefslogtreecommitdiffstats
path: root/ocata
diff options
context:
space:
mode:
authorYun Huang <yun.huang@windriver.com>2018-03-06 18:36:48 +0800
committerYun Huang <yun.huang@windriver.com>2018-03-06 18:36:48 +0800
commit8ff2e0716d126a9d47dc98f933bb0bc046faa05d (patch)
tree2e91d9069b6c2fd7046238b34a983f0287c3a0ad /ocata
parent67790778172b4fd58a5df7d541d5042002e8bcfe (diff)
Add sonar coverage for MultiCloud OpenStack
Change-Id: I6526b56a06cd430bb1b95e7175d2a6d8f48ebc0c Issue-ID: MULTICLOUD-171 Signed-off-by: Yun Huang <yun.huang@windriver.com>
Diffstat (limited to 'ocata')
-rw-r--r--ocata/pom.xml7
-rw-r--r--ocata/tox.ini2
2 files changed, 8 insertions, 1 deletions
diff --git a/ocata/pom.xml b/ocata/pom.xml
index 0a7581cd..79e241e2 100644
--- a/ocata/pom.xml
+++ b/ocata/pom.xml
@@ -41,6 +41,13 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<nexusproxy>https://nexus.onap.org</nexusproxy>
+ <sonar.sources>.</sonar.sources>
+ <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
+ <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
+ <sonar.language>py</sonar.language>
+ <sonar.pluginName>Python</sonar.pluginName>
+ <sonar.inclusions>**/*.py</sonar.inclusions>
+ <sonar.exclusions>tests/*,setup.py</sonar.exclusions>
</properties>
<build>
<plugins>
diff --git a/ocata/tox.ini b/ocata/tox.ini
index 391f3b71..0df0c4af 100644
--- a/ocata/tox.ini
+++ b/ocata/tox.ini
@@ -12,4 +12,4 @@ deps = -r{toxinidir}/requirements.txt
commands =
coverage run --branch manage.py test
coverage report --omit=".tox/*,*tests*,*__init__.py,*newton*" --fail-under=30
-
+ coverage xml -i