Skip to content

Commit f2ddcbb

Browse files
authored
Merge pull request #62 from intuit/IDG-3091
Enable coveralls for all projects
2 parents 1993071 + 04236c9 commit f2ddcbb

File tree

2 files changed

+93
-0
lines changed

2 files changed

+93
-0
lines changed

oauth2-platform-api/pom.xml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,14 @@
7777
</resources>
7878

7979
<plugins>
80+
<plugin>
81+
<groupId>org.eluder.coveralls</groupId>
82+
<artifactId>coveralls-maven-plugin</artifactId>
83+
<version>4.3.0</version>
84+
</plugin>
8085
<!-- This plug-in instructs to use the mentioned JDK for compilation Reference:-
8186
http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html -->
87+
8288
<plugin>
8389
<groupId>org.apache.maven.plugins</groupId>
8490
<artifactId>maven-compiler-plugin</artifactId>
@@ -117,6 +123,47 @@
117123
</execution>
118124
</executions>
119125
</plugin>
126+
<plugin>
127+
<groupId>org.jacoco</groupId>
128+
<artifactId>jacoco-maven-plugin</artifactId>
129+
<!-- <version>0.7.6-SNAPSHOT</version> -->
130+
<version>0.8.4</version>
131+
<executions>
132+
<execution>
133+
<id>default-prepare-agent</id>
134+
<goals>
135+
<goal>prepare-agent</goal>
136+
</goals>
137+
</execution>
138+
<execution>
139+
<id>default-report</id>
140+
<phase>prepare-package</phase>
141+
<goals>
142+
<goal>report</goal>
143+
</goals>
144+
</execution>
145+
<execution>
146+
<id>default-check</id>
147+
<goals>
148+
<goal>check</goal>
149+
</goals>
150+
<configuration>
151+
<rules>
152+
<rule implementation="org.jacoco.maven.RuleConfiguration">
153+
<element>BUNDLE</element>
154+
<limits>
155+
<limit implementation="org.jacoco.report.check.Limit">
156+
<counter>COMPLEXITY</counter>
157+
<value>COVEREDRATIO</value>
158+
<minimum>0.25</minimum>
159+
</limit>
160+
</limits>
161+
</rule>
162+
</rules>
163+
</configuration>
164+
</execution>
165+
</executions>
166+
</plugin>
120167
</plugins>
121168
</build>
122169

payments-api/pom.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@
4949
</resources>
5050

5151
<plugins>
52+
<plugin>
53+
<groupId>org.eluder.coveralls</groupId>
54+
<artifactId>coveralls-maven-plugin</artifactId>
55+
<version>4.3.0</version>
56+
</plugin>
5257
<!-- This plug-in instructs to use the mentioned JDK for compilation Reference:-
5358
http://maven.apache.org/plugins/maven-compiler-plugin/examples/compile-using-different-jdk.html -->
5459
<plugin>
@@ -89,6 +94,47 @@
8994
</execution>
9095
</executions>
9196
</plugin>
97+
<plugin>
98+
<groupId>org.jacoco</groupId>
99+
<artifactId>jacoco-maven-plugin</artifactId>
100+
<!-- <version>0.7.6-SNAPSHOT</version> -->
101+
<version>0.8.4</version>
102+
<executions>
103+
<execution>
104+
<id>default-prepare-agent</id>
105+
<goals>
106+
<goal>prepare-agent</goal>
107+
</goals>
108+
</execution>
109+
<execution>
110+
<id>default-report</id>
111+
<phase>prepare-package</phase>
112+
<goals>
113+
<goal>report</goal>
114+
</goals>
115+
</execution>
116+
<execution>
117+
<id>default-check</id>
118+
<goals>
119+
<goal>check</goal>
120+
</goals>
121+
<configuration>
122+
<rules>
123+
<rule implementation="org.jacoco.maven.RuleConfiguration">
124+
<element>BUNDLE</element>
125+
<limits>
126+
<limit implementation="org.jacoco.report.check.Limit">
127+
<counter>COMPLEXITY</counter>
128+
<value>COVEREDRATIO</value>
129+
<minimum>0.10</minimum>
130+
</limit>
131+
</limits>
132+
</rule>
133+
</rules>
134+
</configuration>
135+
</execution>
136+
</executions>
137+
</plugin>
92138
</plugins>
93139
</build>
94140

0 commit comments

Comments
 (0)