Skip to content

Commit 43ed7c7

Browse files
authored
Add verification that jacoco.exec exists after run
1 parent 4770316 commit 43ed7c7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,30 @@
646646
</execution>
647647
</executions>
648648
</plugin>
649+
<plugin>
650+
<groupId>org.apache.maven.plugins</groupId>
651+
<artifactId>maven-enforcer-plugin</artifactId>
652+
<version>3.0.0-M3</version>
653+
<executions>
654+
<execution>
655+
<id>enforce-jacoco-exist</id>
656+
<phase>verify</phase>
657+
<goals>
658+
<goal>enforce</goal>
659+
</goals>
660+
<configuration>
661+
<rules>
662+
<requireFilesExist>
663+
<files>
664+
<file>${project.build.directory}/jacoco.exec</file>
665+
</files>
666+
</requireFilesExist>
667+
</rules>
668+
<fail>true</fail>
669+
</configuration>
670+
</execution>
671+
</executions>
672+
</plugin>
649673
</plugins>
650674
</build>
651675
</profile>

0 commit comments

Comments
 (0)