Skip to content

Commit 07e1ab1

Browse files
committed
work to configure coveralls #8
1 parent d307184 commit 07e1ab1

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

pom.xml

+33-1
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,44 @@
4949
</dependencies>
5050
<build>
5151
<plugins>
52+
<plugin>
53+
<groupId>org.jacoco</groupId>
54+
<artifactId>jacoco-maven-plugin</artifactId>
55+
<version>0.7.9</version>
56+
<executions>
57+
<execution>
58+
<id>pre-unit-test</id>
59+
<phase>test-compile</phase>
60+
<goals>
61+
<goal>prepare-agent</goal>
62+
</goals>
63+
<configuration>
64+
<destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
65+
<propertyName>surefireArgLine</propertyName>
66+
</configuration>
67+
</execution>
68+
<execution>
69+
<id>post-unit-test</id>
70+
<phase>test</phase>
71+
<goals>
72+
<goal>report</goal>
73+
</goals>
74+
<configuration>
75+
<dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
76+
<outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
77+
</configuration>
78+
</execution>
79+
</executions>
80+
</plugin>
5281
<plugin>
5382
<groupId>org.eluder.coveralls</groupId>
5483
<artifactId>coveralls-maven-plugin</artifactId>
5584
<version>4.3.0</version>
5685
<configuration>
57-
<repoToken>repoToken</repoToken>
86+
<repoToken>VoNnKHlm3jV6CDIVG9NxC7Z0LGYrhPgxD</repoToken>
87+
<jacocoReports>
88+
<jacocoReport>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</jacocoReport>
89+
</jacocoReports>
5890
</configuration>
5991
</plugin>
6092
</plugins>

0 commit comments

Comments
 (0)