Skip to content

Commit 1cbbf02

Browse files
committed
Add JaCoCo for code coverage analysis
1 parent 580bc9f commit 1cbbf02

File tree

2 files changed

+73
-1
lines changed

2 files changed

+73
-1
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>org.seasar.doma.boot</groupId>
9+
<artifactId>doma-spring-boot</artifactId>
10+
<version>2.2.0-SNAPSHOT</version>
11+
<relativePath>../pom.xml</relativePath>
12+
</parent>
13+
<artifactId>doma-spring-boot-jacoco-aggregate</artifactId>
14+
15+
<properties>
16+
<maven.deploy.skip>true</maven.deploy.skip>
17+
</properties>
18+
19+
<dependencies>
20+
<dependency>
21+
<groupId>${project.groupId}</groupId>
22+
<artifactId>doma-spring-boot-core</artifactId>
23+
<version>${project.version}</version>
24+
</dependency>
25+
<dependency>
26+
<groupId>${project.groupId}</groupId>
27+
<artifactId>doma-spring-boot-autoconfigure</artifactId>
28+
<version>${project.version}</version>
29+
</dependency>
30+
</dependencies>
31+
32+
<build>
33+
<plugins>
34+
<plugin>
35+
<groupId>org.jacoco</groupId>
36+
<artifactId>jacoco-maven-plugin</artifactId>
37+
<executions>
38+
<execution>
39+
<id>report-aggregate</id>
40+
<phase>verify</phase>
41+
<goals>
42+
<goal>report-aggregate</goal>
43+
</goals>
44+
</execution>
45+
</executions>
46+
</plugin>
47+
</plugins>
48+
</build>
49+
</project>

pom.xml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,15 @@
5555
<formatter-maven-plugin.version>2.25.0</formatter-maven-plugin.version>
5656
<versions-maven-plugin.version>2.18.0</versions-maven-plugin.version>
5757
<gpg-plugin.version>3.2.7</gpg-plugin.version>
58-
<rootDir>${project.basedir}</rootDir>
58+
<rootDir>${env.PWD}</rootDir>
5959
</properties>
6060

6161
<modules>
6262
<module>doma-spring-boot-core</module>
6363
<module>doma-spring-boot-autoconfigure</module>
6464
<module>doma-spring-boot-starter</module>
6565
<module>doma-spring-boot-samples</module>
66+
<module>doma-spring-boot-jacoco-aggregate</module>
6667
</modules>
6768

6869
<dependencyManagement>
@@ -164,6 +165,28 @@
164165
<lineEnding>LF</lineEnding>
165166
</configuration>
166167
</plugin>
168+
<plugin>
169+
<groupId>org.jacoco</groupId>
170+
<artifactId>jacoco-maven-plugin</artifactId>
171+
<version>0.8.12</version>
172+
<executions>
173+
<execution>
174+
<id>prepare</id>
175+
<goals>
176+
<goal>prepare-agent</goal>
177+
</goals>
178+
</execution>
179+
<execution>
180+
<id>report</id>
181+
<phase>verify</phase>
182+
<goals>
183+
<goal>report</goal>
184+
</goals>
185+
</execution>
186+
</executions>
187+
<configuration>
188+
</configuration>
189+
</plugin>
167190
</plugins>
168191
</build>
169192

0 commit comments

Comments
 (0)