summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDileep Ranganathan <dileep.ranganathan@intel.com>2018-03-07 09:42:55 -0800
committerDileep Ranganathan <dileep.ranganathan@intel.com>2018-03-08 01:10:29 +0000
commit27072ed98f1be56857d782e76ae59f3ebfb6473a (patch)
treed8b37d69cb2a5e8c375ec670022125b788743d91
parentb8bad9d2cc5168e55271929a6474184129f31ef2 (diff)
Exclude Tests from Sonar coverage report
Change-Id: I60bf015cdc4a3a7fad8babf146dd9e78470645d1 Issue-ID: OPTFRA-102 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
-rw-r--r--pom.xml16
1 files changed, 9 insertions, 7 deletions
diff --git a/pom.xml b/pom.xml
index 982ca96..d922d42 100644
--- a/pom.xml
+++ b/pom.xml
@@ -33,17 +33,19 @@
<description>Optimization Service Design Framework</description>
<properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <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>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <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>test/**.py</sonar.exclusions>
</properties>
<build>
<plugins>
+ <!-- triggers tox test for sonar -->
<plugin>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>