summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxinhuili <lxinhui@vmware.com>2018-03-05 07:38:09 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-05 07:38:09 +0000
commitad224a0e9238ec101ecc92d305fc747b60a08c4b (patch)
tree8cb6550ba99d32bdc3d4c163adc0f889c3931a1e
parentdbb7e33fd422411e3ec0176e2ac214f858f548b8 (diff)
parent379b89a6ba23b6514ffc1aa85b0fdb0c3b78c5cf (diff)
Merge "Add code coverage for sonar"
-rw-r--r--pom.xml7
-rw-r--r--vio/tox.ini1
2 files changed, 8 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index e0f05d9..f7c13e0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -33,6 +33,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>vio/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>
</build>
diff --git a/vio/tox.ini b/vio/tox.ini
index 966b7bb..f2df905 100644
--- a/vio/tox.ini
+++ b/vio/tox.ini
@@ -25,3 +25,4 @@ setenv=
commands =
coverage erase
{[testenv]commands}
+ coverage xml -i \ No newline at end of file