Add sonar 63/34363/2
authorEthan Lynn <ethanlynnl@vmware.com>
Tue, 6 Mar 2018 22:11:52 +0000 (22:11 +0000)
committerEthan Lynn <ethanlynnl@vmware.com>
Tue, 6 Mar 2018 22:17:30 +0000 (22:17 +0000)
Add sonar code coverage in pom.xml

Change-Id: Idc965bb49bf4747cedf4d4f9e9819b3a9c42171e
Issue-ID: MULTICLOUD-172
Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
multivimbroker/pom.xml
multivimbroker/tox.ini

index e7b31f1..274f54d 100644 (file)
     <packaging>pom</packaging>
     <name>multicloud-framework-broker</name>
     <description>multivim broker</description>
+    <properties>
+        <encoding>UTF-8</encoding>
+        <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>
         <plugins>
             <plugin>
index 4db044a..cda89e4 100644 (file)
@@ -25,3 +25,4 @@ setenv=
 commands =
   coverage erase
   {[testenv]commands}
+  coverage xml -i

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use