diff options
author | Remigiusz Janeczek <remigiusz.janeczek@nokia.com> | 2020-11-17 13:39:16 +0100 |
---|---|---|
committer | Remigiusz Janeczek <remigiusz.janeczek@nokia.com> | 2020-11-18 10:17:07 +0100 |
commit | 951051407917716a241026bb11659e3ceb5cb8c2 (patch) | |
tree | ac050e5a3f58835d3ba87ac23cfff0fe3ebc74f8 /certServiceK8sExternalProvider/pom.xml | |
parent | 99498718d782fe435feded438de76cacc93090ed (diff) |
[OOM-K8S-CERT-EXTERNAL-PROVIDER] Add coverage report
Issue-ID: OOM-2559
Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com>
Change-Id: I484a2b38ef40b60f879c2067b39329073db030af
Diffstat (limited to 'certServiceK8sExternalProvider/pom.xml')
-rw-r--r-- | certServiceK8sExternalProvider/pom.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/certServiceK8sExternalProvider/pom.xml b/certServiceK8sExternalProvider/pom.xml index a34ffc3f..2959478e 100644 --- a/certServiceK8sExternalProvider/pom.xml +++ b/certServiceK8sExternalProvider/pom.xml @@ -15,8 +15,20 @@ <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> @@ -46,6 +58,17 @@ <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> <goal>install</goal> |