[OOM-K8S-CERT-EXTERNAL-PROVIDER] Add coverage report 94/114994/2
authorRemigiusz Janeczek <remigiusz.janeczek@nokia.com>
Tue, 17 Nov 2020 12:39:16 +0000 (13:39 +0100)
committerRemigiusz Janeczek <remigiusz.janeczek@nokia.com>
Wed, 18 Nov 2020 09:17:07 +0000 (10:17 +0100)
Issue-ID: OOM-2559
Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com>
Change-Id: I484a2b38ef40b60f879c2067b39329073db030af

certServiceK8sExternalProvider/pom.xml

index a34ffc3..2959478 100644 (file)
   <properties>
     <version.mvn-clean-plugin>3.1.0</version.mvn-clean-plugin>
     <version.mvn-golang-wrapper-plugin>2.3.5</version.mvn-golang-wrapper-plugin>
+    <sonar.go.coverage.reportPaths>bin/coverage.out</sonar.go.coverage.reportPaths>
+    <sonar.exclusions>**/*_test.go, **/testdata/*</sonar.exclusions>
+    <sonar-go-plugin.version>1.1.1.2000</sonar-go-plugin.version>
   </properties>
 
+
+  <dependencies>
+    <dependency>
+      <groupId>org.sonarsource.go</groupId>
+      <artifactId>sonar-go-plugin</artifactId>
+      <version>${sonar-go-plugin.version}</version>
+    </dependency>
+  </dependencies>
+
   <build>
     <!--Changing standard Maven project source structure to make it Go compatible-->
     <sourceDirectory>${basedir}</sourceDirectory>
         <version>${version.mvn-golang-wrapper-plugin}</version>
         <extensions>true</extensions>
         <executions>
+          <execution>
+            <id>coverage</id>
+            <goals>
+              <goal>test</goal>
+            </goals>
+            <configuration>
+              <testFlags>
+                <flag>-coverprofile=bin/coverage.out</flag>
+              </testFlags>
+            </configuration>
+          </execution>
           <execution>
             <id>install</id>
             <goals>