Skip to content

Commit 9e850cf

Browse files
committed
Try to get code coverage to work
1 parent dbcb0de commit 9e850cf

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
java-version: ${{ matrix.java_version }}
3434
cache: 'maven'
3535
- name: Build
36-
run: ./mvnw -B -q -ff -ntp verify
36+
run: ./mvnw -B -ff -ntp clean verify
3737
- name: Generate code coverage
3838
if: github.event_name != 'pull_request' && matrix.java_version == '8'
3939
run: ./mvnw -B -q -ff -ntp test

pom.xml

+22
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,28 @@ com.fasterxml.classmate.*;version=${project.version}
139139
</execution>
140140
</executions>
141141
</plugin>
142+
143+
<!-- 11-Oct-2023, tatu: Try to produce Code coverage: -->
144+
<plugin>
145+
<groupId>org.jacoco</groupId>
146+
<artifactId>jacoco-maven-plugin</artifactId>
147+
<executions>
148+
<execution>
149+
<goals>
150+
<goal>prepare-agent</goal>
151+
</goals>
152+
</execution>
153+
<!-- attached to Maven test phase -->
154+
<execution>
155+
<id>report</id>
156+
<phase>test</phase>
157+
<goals>
158+
<goal>report</goal>
159+
</goals>
160+
</execution>
161+
</executions>
162+
</plugin>
163+
142164
</plugins>
143165
</build>
144166
<profiles>

0 commit comments

Comments
 (0)