Update pom.xml for sonar support
Update python test configuration in the pom file
Issue-ID: VNFSDK-210
Change-Id: I52615cc986587fe7df0f1b8c2ca9608f14b35e7b
Signed-off-by: Chris Donley <christopher.donley@huawei.com>
diff --git a/pom.xml b/pom.xml
index 7e7fa24..55a001c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -32,11 +32,16 @@
<name>vnfsdk-pkgtools</name>
<description>CSAR manipulation shared library with CLI</description>
<properties>
+ <sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
+ <sonar.tests>tests</sonar.tests>
<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.pluginName>python</sonar.pluginName>
<sonar.inclusions>**/*.py</sonar.inclusions>
+ <sonar.exclusions>**/tests/**,**/.tox/py27/**</sonar.exclusions>
+ <sonar.test.inclusions>**/tests/**.py</sonar.test.inclusions>
+ <sonar.test.exclusions>**/**.py,setup.py,**/.tox/py27/**</sonar.test.exclusions>
</properties>
<build>