Skip to content

Commit 107b30f

Browse files
authored
Fix/code coverage (#5)
* feat: add secrets & configmap * fix: project * fix: vuln * fix: some vuln * fix: vuln * fix: test * fix: pipeline * fix: pipeline * fix: pipline * fix * fix: pipe * fix: pipe * fix: pipeline * fix: test * fix; * add pipline * test * fix: build * test * fix: code-coverage
1 parent e75ac8c commit 107b30f

1 file changed

Lines changed: 52 additions & 12 deletions

File tree

pom.xml

Lines changed: 52 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@
3838
</repository>
3939
</distributionManagement>
4040
<dependencies>
41-
42-
<!-- <dependency>
43-
<groupId>dev.fastball</groupId>
44-
<artifactId>fastball-runtime-spring-devtools</artifactId>
45-
<version>0.4.0</version>
46-
</dependency> -->
4741
<dependency>
4842
<groupId>org.apache.tomcat.embed</groupId>
4943
<artifactId>tomcat-embed-core</artifactId>
@@ -54,7 +48,11 @@
5448
<artifactId>spring-boot-starter-web</artifactId>
5549
<version>3.4.1</version>
5650
</dependency>
57-
51+
<dependency>
52+
<groupId>org.jacoco</groupId>
53+
<artifactId>jacoco-maven-plugin</artifactId>
54+
<version>0.8.12</version>
55+
</dependency>
5856
<dependency>
5957
<groupId>org.springframework.boot</groupId>
6058
<artifactId>spring-boot-starter-test</artifactId>
@@ -83,11 +81,6 @@
8381
<artifactId>lombok</artifactId>
8482
<scope>annotationProcessor</scope>
8583
</dependency>
86-
<!-- <dependency>
87-
<groupId>org.springframework.boot</groupId>
88-
<artifactId>spring-boot-docker-compose</artifactId>
89-
<scope>runtime</scope>
90-
</dependency> -->
9184
<dependency>
9285
<groupId>com.mysql</groupId>
9386
<artifactId>mysql-connector-j</artifactId>
@@ -97,6 +90,15 @@
9790
</dependencies>
9891

9992
<build>
93+
<pluginManagement>
94+
<plugins>
95+
<plugin>
96+
<groupId>org.jacoco</groupId>
97+
<artifactId>jacoco-maven-plugin</artifactId>
98+
<version>0.8.12</version>
99+
</plugin>
100+
</plugins>
101+
</pluginManagement>
100102
<plugins>
101103
<plugin>
102104
<groupId>org.apache.maven.plugins</groupId>
@@ -124,6 +126,44 @@
124126
<outputDirectory>${project.basedir}/target</outputDirectory>
125127
</configuration>
126128
</plugin>
129+
<plugin>
130+
<groupId>org.jacoco</groupId>
131+
<artifactId>jacoco-maven-plugin</artifactId>
132+
<executions>
133+
<execution>
134+
<goals>
135+
<goal>prepare-agent</goal>
136+
</goals>
137+
</execution>
138+
<execution>
139+
<id>report</id>
140+
<phase>test</phase>
141+
<goals>
142+
<goal>report</goal>
143+
</goals>
144+
</execution>
145+
<execution>
146+
<id>jacoco-check</id>
147+
<goals>
148+
<goal>check</goal>
149+
</goals>
150+
<configuration>
151+
<rules>
152+
<rule>
153+
<element>PACKAGE</element>
154+
<limits>
155+
<limit>
156+
<counter>LINE</counter>
157+
<value>COVEREDRATIO</value>
158+
<minimum>20%</minimum>
159+
</limit>
160+
</limits>
161+
</rule>
162+
</rules>
163+
</configuration>
164+
</execution>
165+
</executions>
166+
</plugin>
127167
</plugins>
128168
</build>
129169
</project>

0 commit comments

Comments
 (0)