Skip to content

Commit

Permalink
Add code coverage plugins (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
falko committed May 25, 2021
1 parent 09c816a commit 969d178
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 6 deletions.
24 changes: 24 additions & 0 deletions abstract-delegate-execution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,30 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<!-- Profiles just here to ease testing in IDEs (Ctrl+Alt+P in Eclipse)-->
<profile>
Expand Down
19 changes: 19 additions & 0 deletions asynchronous-service-task/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,25 @@
<artifactId>wildfly-maven-plugin</artifactId>
<version>2.0.2.Final</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
36 changes: 30 additions & 6 deletions engine-plugin-on-demand-call-activity/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,38 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.14</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.14</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<repositories>
<repository>
<id>camunda-bpm-nexus</id>
Expand Down
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
<module>abstract-delegate-execution</module>
</modules>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
</plugin>
</plugins>
</build>

<distributionManagement>
<snapshotRepository>
<id>github</id>
Expand Down

0 comments on commit 969d178

Please sign in to comment.