forked from danidemi/tutorial-java-tdd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
98 lines (83 loc) · 2.67 KB
/
pom.xml
File metadata and controls
98 lines (83 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>coverage</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>com.danidemi.tutorial.tdd</groupId>
<artifactId>tdd-parent</artifactId>
<version>0.0.2-SNAPSHOT</version>
</parent>
<dependencies>
<!-- http://stackoverflow.com/questions/18103956/how-to-generate-coverage-report-with-jmockit-and-maven#18104443 -->
<dependency>
<groupId>org.jmockit</groupId>
<artifactId>jmockit-coverage</artifactId>
<version>1.23</version>
</dependency>
<dependency>
<groupId>org.jmockit</groupId>
<artifactId>jmockit</artifactId>
<version>1.23</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.2.0</version>
<executions>
<execution>
<id>pitest</id>
<goals>
<goal>mutationCoverage</goal>
</goals>
<phase>verify</phase>
</execution>
</executions>
</plugin>
<!--
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.15</version>
<configuration>
<argLine>
-Djmockit-coverage-outputDir=target/coverage-report
</argLine>
</configuration>
</plugin>
-->
<!-- http://jmockit.org/tutorial/CodeCoverage.html#maven -->
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<!-- At least one of the following needs to be set: -->
<coverage-output>html</coverage-output> <!-- or: html-nocp, serial, serial-append -->
<coverage-metrics>all</coverage-metrics> <!-- or: line, path, data -->
<coverage-classes>loaded</coverage-classes> <!-- or a "*" expression for class names -->
<!-- Other properties, if needed: -->
<!--<coverage-outputDir>my-dir</coverage-outputDir>-->
<!-- default: target/coverage-report -->
<!--<coverage-srcDirs>sources</coverage-srcDirs>-->
<!-- default: all "src" directories -->
<!--<coverage-excludes>some.package.*</coverage-excludes>-->
<!-- default: empty -->
<!--<coverage-check>80</coverage-check>-->
<!-- default: no checks -->
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</project>