diff options
-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 1672d10f..22c4757e 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> |