File tree 2 files changed +54
-0
lines changed
2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Code Coverage Report generation
2
+
3
+ To generate the code coverage report, execute the following command:
4
+ > mvn clean verify
5
+
6
+ This will generate code coverage report in each of the modules. In order to view the same, open the following file in your browser.
7
+ > target/site/jacoco/index.html
8
+
9
+ Please note that the above folder is created under each of the modules. For example:
10
+ * adapter/target/site/jacoco/index.html
11
+ * busniess-delegate/target/site/jacoco/index.html
12
+
13
+
Original file line number Diff line number Diff line change 130
130
<version >${junit.version} </version >
131
131
<scope >test</scope >
132
132
</dependency >
133
+ <dependency >
134
+ <groupId >org.mockito</groupId >
135
+ <artifactId >mockito-core</artifactId >
136
+ <version >1.10.19</version >
137
+ <scope >test</scope >
138
+ </dependency >
133
139
<dependency >
134
140
<groupId >log4j</groupId >
135
141
<artifactId >log4j</artifactId >
242
248
</execution >
243
249
</executions >
244
250
</plugin >
251
+
252
+ <plugin >
253
+ <groupId >org.jacoco</groupId >
254
+ <artifactId >jacoco-maven-plugin</artifactId >
255
+ <version >0.7.5.201505241946</version >
256
+ <executions >
257
+ <execution >
258
+ <goals >
259
+ <goal >prepare-agent</goal >
260
+ </goals >
261
+ </execution >
262
+ <execution >
263
+ <id >report</id >
264
+ <phase >prepare-package</phase >
265
+ <goals >
266
+ <goal >report</goal >
267
+ </goals >
268
+ </execution >
269
+ </executions >
270
+ </plugin >
271
+ <plugin >
272
+ <groupId >org.apache.maven.plugins</groupId >
273
+ <artifactId >maven-surefire-plugin</artifactId >
274
+ <version >2.18.1</version >
275
+ <dependencies >
276
+ <dependency >
277
+ <groupId >org.apache.maven.surefire</groupId >
278
+ <artifactId >surefire-junit47</artifactId >
279
+ <version >2.18.1</version >
280
+ </dependency >
281
+ </dependencies >
282
+ <configuration >
283
+ <argLine >-Xmx1024M ${argLine} </argLine >
284
+ </configuration >
285
+ </plugin >
245
286
</plugins >
246
287
</build >
247
288
You can’t perform that action at this time.
0 commit comments