Compare commits
No commits in common. "75946b97b05946bb9406451168c2cbb55367e107" and "a65e5e1ee1fbcc0945f11c70fc8ff5ba2dc9a5c3" have entirely different histories.
75946b97b0
...
a65e5e1ee1
9 changed files with 217 additions and 212 deletions
|
@ -1,7 +1,7 @@
|
||||||
bld.downloadExtensionJavadoc=false
|
bld.downloadExtensionJavadoc=false
|
||||||
bld.downloadExtensionSources=true
|
bld.downloadExtensionSources=true
|
||||||
bld.downloadLocation=
|
bld.extensions=com.uwyn.rife2:bld-pitest:0.9.8
|
||||||
bld.extension-pitest=com.uwyn.rife2:bld-pitest:0.9.9-SNAPSHOT
|
|
||||||
bld.repositories=MAVEN_CENTRAL,RIFE2_RELEASES,MAVEN_LOCAL,RIFE2_SNAPSHOTS
|
bld.repositories=MAVEN_CENTRAL,RIFE2_RELEASES,MAVEN_LOCAL,RIFE2_SNAPSHOTS
|
||||||
|
bld.downloadLocation=
|
||||||
bld.sourceDirectories=
|
bld.sourceDirectories=
|
||||||
bld.version=1.9.1
|
bld.version=1.9.1
|
||||||
|
|
|
@ -15,12 +15,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@4d02f94e_1'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_1'/>
|
||||||
1
|
1
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4d02f94e_1'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_1'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -30,12 +30,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@4d02f94e_2'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_2'/>
|
||||||
2
|
2
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4d02f94e_2'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_2'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -45,12 +45,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='covered'>
|
<td class='covered'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@4d02f94e_3'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_3'/>
|
||||||
3
|
3
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4d02f94e_3'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_3'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -60,12 +60,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@4d02f94e_4'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_4'/>
|
||||||
4
|
4
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4d02f94e_4'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_4'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -75,12 +75,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='covered'>
|
<td class='covered'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@4d02f94e_5'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_5'/>
|
||||||
5
|
5
|
||||||
</td>
|
</td>
|
||||||
<td class='killed'>
|
<td class='killed'>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4d02f94e_5'>1</a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_5'>1</a>
|
||||||
<span>
|
<span>
|
||||||
1. getMessage : replaced return value with "" for com/example/ExamplesLib::getMessage → KILLED<br/>
|
1. getMessage : replaced return value with "" for com/example/ExamplesLib::getMessage → KILLED<br/>
|
||||||
|
|
||||||
|
@ -92,12 +92,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@4d02f94e_6'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_6'/>
|
||||||
6
|
6
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4d02f94e_6'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_6'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -107,12 +107,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@4d02f94e_7'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_7'/>
|
||||||
7
|
7
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@4d02f94e_7'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_7'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -124,11 +124,11 @@
|
||||||
<tr><td></td><td></td><td><h2>Mutations</h2></td></tr>
|
<tr><td></td><td></td><td><h2>Mutations</h2></td></tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@4d02f94e_5'>5</a></td>
|
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@446293d_5'>5</a></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@4d02f94e_5'/>
|
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@446293d_5'/>
|
||||||
|
|
||||||
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>getMessage<br/><b>Killed by : </b>com.example.ExamplesTest.[engine:junit-jupiter]/[class:com.example.ExamplesTest]/[method:verifyHello()]</span></span> replaced return value with "" for com/example/ExamplesLib::getMessage → KILLED</p>
|
<p class='KILLED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>getMessage<br/><b>Killed by : </b>com.example.ExamplesTest.[engine:junit-jupiter]/[class:com.example.ExamplesTest]/[method:verifyHello()]</span></span> replaced return value with "" for com/example/ExamplesLib::getMessage → KILLED</p>
|
||||||
</td>
|
</td>
|
||||||
|
@ -155,9 +155,12 @@
|
||||||
|
|
||||||
<h2>Tests examined</h2>
|
<h2>Tests examined</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>com.example.ExamplesTest.[engine:junit-jupiter]/[class:com.example.ExamplesTest]/[method:verifyHello()] (9 ms)</li>
|
<li>com.example.ExamplesTest.[engine:junit-jupiter]/[class:com.example.ExamplesTest]/[method:verifyHello()] (11 ms)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
Report generated by <a href='https://pitest.org'>PIT</a>
|
Report generated by <a href='https://pitest.org'>PIT</a> 1.16.1
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -15,12 +15,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_1'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@6c130c45_1'/>
|
||||||
1
|
1
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_1'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_1'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -30,12 +30,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_2'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@6c130c45_2'/>
|
||||||
2
|
2
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_2'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_2'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -45,12 +45,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_3'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@6c130c45_3'/>
|
||||||
3
|
3
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_3'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_3'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -60,12 +60,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_4'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@6c130c45_4'/>
|
||||||
4
|
4
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_4'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_4'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -75,12 +75,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_5'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@6c130c45_5'/>
|
||||||
5
|
5
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_5'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_5'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -90,12 +90,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_6'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@6c130c45_6'/>
|
||||||
6
|
6
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_6'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_6'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -105,12 +105,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='covered'>
|
<td class='covered'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_7'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@6c130c45_7'/>
|
||||||
7
|
7
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_7'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_7'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -120,12 +120,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_8'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@6c130c45_8'/>
|
||||||
8
|
8
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_8'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_8'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -135,12 +135,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_9'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@6c130c45_9'/>
|
||||||
9
|
9
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_9'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_9'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -150,12 +150,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='covered'>
|
<td class='covered'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_10'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@6c130c45_10'/>
|
||||||
10
|
10
|
||||||
</td>
|
</td>
|
||||||
<td class='survived'>
|
<td class='survived'>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_10'>1</a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_10'>1</a>
|
||||||
<span>
|
<span>
|
||||||
1. verifyHello : removed call to org/junit/jupiter/api/Assertions::assertEquals → SURVIVED<br/>
|
1. verifyHello : removed call to org/junit/jupiter/api/Assertions::assertEquals → SURVIVED<br/>
|
||||||
|
|
||||||
|
@ -167,12 +167,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='covered'>
|
<td class='covered'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_11'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@6c130c45_11'/>
|
||||||
11
|
11
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_11'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_11'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -182,12 +182,12 @@
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class='na'>
|
<td class='na'>
|
||||||
<a name='org.pitest.mutationtest.report.html.SourceFile@446293d_12'/>
|
<a name='org.pitest.mutationtest.report.html.SourceFile@6c130c45_12'/>
|
||||||
12
|
12
|
||||||
</td>
|
</td>
|
||||||
<td class=''>
|
<td class=''>
|
||||||
<span class='pop'>
|
<span class='pop'>
|
||||||
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@446293d_12'></a>
|
<a href='#grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_12'></a>
|
||||||
<span>
|
<span>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
@ -199,11 +199,11 @@
|
||||||
<tr><td></td><td></td><td><h2>Mutations</h2></td></tr>
|
<tr><td></td><td></td><td><h2>Mutations</h2></td></tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@446293d_10'>10</a></td>
|
<td><a href='#org.pitest.mutationtest.report.html.SourceFile@6c130c45_10'>10</a></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@446293d_10'/>
|
<a name='grouporg.pitest.mutationtest.report.html.SourceFile@6c130c45_10'/>
|
||||||
|
|
||||||
<p class='SURVIVED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>verifyHello<br/><b>Killed by : </b>none</span></span> removed call to org/junit/jupiter/api/Assertions::assertEquals → SURVIVED</p>
|
<p class='SURVIVED'><span class='pop'>1.<span><b>1</b><br/><b>Location : </b>verifyHello<br/><b>Killed by : </b>none</span></span> removed call to org/junit/jupiter/api/Assertions::assertEquals → SURVIVED</p>
|
||||||
</td>
|
</td>
|
||||||
|
@ -230,9 +230,12 @@
|
||||||
|
|
||||||
<h2>Tests examined</h2>
|
<h2>Tests examined</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>com.example.ExamplesTest.[engine:junit-jupiter]/[class:com.example.ExamplesTest]/[method:verifyHello()] (9 ms)</li>
|
<li>com.example.ExamplesTest.[engine:junit-jupiter]/[class:com.example.ExamplesTest]/[method:verifyHello()] (11 ms)</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
Report generated by <a href='https://pitest.org'>PIT</a>
|
Report generated by <a href='https://pitest.org'>PIT</a> 1.16.1
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -63,4 +63,7 @@
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
Report generated by <a href='https://pitest.org'>PIT</a>
|
Report generated by <a href='https://pitest.org'>PIT</a> 1.16.1
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -62,4 +62,11 @@
|
||||||
<ul>
|
<ul>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
Report generated by <a href='https://pitest.org'>PIT</a>
|
Report generated by <a href='https://pitest.org'>PIT</a> 1.16.1
|
||||||
|
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
|
||||||
|
Enhanced functionality available at <a href='https://www.arcmutate.com/'>arcmutate.com</a>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -1,9 +1,9 @@
|
||||||
bld.downloadExtensionJavadoc=false
|
bld.downloadExtensionJavadoc=false
|
||||||
bld.downloadExtensionSources=true
|
bld.downloadExtensionSources=true
|
||||||
bld.downloadLocation=
|
bld.extension-pmd=com.uwyn.rife2:bld-pmd:0.9.9
|
||||||
bld.extension-exec=com.uwyn.rife2:bld-exec:1.0.1
|
bld.extension-exec=com.uwyn.rife2:bld-exec:1.0.0
|
||||||
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.5
|
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.5
|
||||||
bld.extension-pmd=com.uwyn.rife2:bld-pmd:1.1.0
|
|
||||||
bld.repositories=MAVEN_CENTRAL,MAVEN_LOCAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
bld.repositories=MAVEN_CENTRAL,MAVEN_LOCAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||||
|
bld.downloadLocation=
|
||||||
bld.sourceDirectories=
|
bld.sourceDirectories=
|
||||||
bld.version=1.9.1
|
bld.version=1.9.1
|
||||||
|
|
|
@ -35,13 +35,11 @@ public class PitestOperationBuild extends Project {
|
||||||
public PitestOperationBuild() {
|
public PitestOperationBuild() {
|
||||||
pkg = "rife.bld.extension";
|
pkg = "rife.bld.extension";
|
||||||
name = "PitestExtension";
|
name = "PitestExtension";
|
||||||
version = version(0, 9, 9, "SNAPSHOT");
|
version = version(0, 9, 8);
|
||||||
|
|
||||||
javaRelease = 17;
|
javaRelease = 17;
|
||||||
|
|
||||||
downloadSources = true;
|
downloadSources = true;
|
||||||
autoDownloadPurge = true;
|
autoDownloadPurge = true;
|
||||||
|
|
||||||
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
|
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
|
||||||
|
|
||||||
var pitest = version(1, 16, 1);
|
var pitest = version(1, 16, 1);
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
/**
|
/**
|
||||||
* The PIT options.
|
* The PIT options.
|
||||||
*/
|
*/
|
||||||
private final Map<String, String> options_ = new ConcurrentHashMap<>();
|
protected final Map<String, String> options = new ConcurrentHashMap<>();
|
||||||
private BaseProject project_;
|
private BaseProject project_;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,7 +56,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation argLine(String line) {
|
public PitestOperation argLine(String line) {
|
||||||
if (isNotBlank(line)) {
|
if (isNotBlank(line)) {
|
||||||
options_.put("--argLine", line);
|
options.put("--argLine", line);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #avoidCallsTo(String...)
|
* @see #avoidCallsTo(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation avoidCallsTo(Collection<String> avoidCallsTo) {
|
public PitestOperation avoidCallsTo(Collection<String> avoidCallsTo) {
|
||||||
options_.put("--avoidCallsTo", String.join(",", avoidCallsTo.stream().filter(this::isNotBlank).toList()));
|
options.put("--avoidCallsTo", String.join(",", avoidCallsTo.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #avoidCallsTo(Collection)
|
* @see #avoidCallsTo(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation avoidCallsTo(String... avoidCallTo) {
|
public PitestOperation avoidCallsTo(String... avoidCallTo) {
|
||||||
options_.put("--avoidCallsTo", String.join(",", Arrays.stream(avoidCallTo).filter(this::isNotBlank).toList()));
|
options.put("--avoidCallsTo", String.join(",", Arrays.stream(avoidCallTo).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #classPath(Collection)
|
* @see #classPath(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation classPath(String... path) {
|
public PitestOperation classPath(String... path) {
|
||||||
options_.put("--classPath", String.join(",", Arrays.stream(path).filter(this::isNotBlank).toList()));
|
options.put("--classPath", String.join(",", Arrays.stream(path).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #classPath(String...)
|
* @see #classPath(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation classPath(Collection<String> path) {
|
public PitestOperation classPath(Collection<String> path) {
|
||||||
options_.put("--classPath", String.join(",", path.stream().filter(this::isNotBlank).toList()));
|
options.put("--classPath", String.join(",", path.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation classPathFile(String file) {
|
public PitestOperation classPathFile(String file) {
|
||||||
if (isNotBlank(file)) {
|
if (isNotBlank(file)) {
|
||||||
options_.put("--classPathFile", file);
|
options.put("--classPathFile", file);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -168,7 +168,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation coverageThreshold(int threshold) {
|
public PitestOperation coverageThreshold(int threshold) {
|
||||||
if (threshold >= 0 && threshold <= 100) {
|
if (threshold >= 0 && threshold <= 100) {
|
||||||
options_.put("--coverageThreshold", String.valueOf(threshold));
|
options.put("--coverageThreshold", String.valueOf(threshold));
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -207,9 +207,9 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation detectInlinedCode(boolean isDetectInlinedCode) {
|
public PitestOperation detectInlinedCode(boolean isDetectInlinedCode) {
|
||||||
if (isDetectInlinedCode) {
|
if (isDetectInlinedCode) {
|
||||||
options_.put("--detectInlinedCode", TRUE);
|
options.put("--detectInlinedCode", TRUE);
|
||||||
} else {
|
} else {
|
||||||
options_.put("--detectInlinedCode", FALSE);
|
options.put("--detectInlinedCode", FALSE);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -222,7 +222,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #excludedClasses(Collection)
|
* @see #excludedClasses(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation excludedClasses(String... excludedClass) {
|
public PitestOperation excludedClasses(String... excludedClass) {
|
||||||
options_.put("--excludedClasses",
|
options.put("--excludedClasses",
|
||||||
String.join(",", Arrays.stream(excludedClass).filter(this::isNotBlank).toList()));
|
String.join(",", Arrays.stream(excludedClass).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -235,7 +235,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #excludedClasses(String...)
|
* @see #excludedClasses(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation excludedClasses(Collection<String> excludedClasses) {
|
public PitestOperation excludedClasses(Collection<String> excludedClasses) {
|
||||||
options_.put("--excludedClasses", String.join(",", excludedClasses.stream().filter(this::isNotBlank).toList()));
|
options.put("--excludedClasses", String.join(",", excludedClasses.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -248,7 +248,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #excludedGroups(Collection)
|
* @see #excludedGroups(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation excludedGroups(String... excludedGroup) {
|
public PitestOperation excludedGroups(String... excludedGroup) {
|
||||||
options_.put("--excludedGroups",
|
options.put("--excludedGroups",
|
||||||
String.join(",", Arrays.stream(excludedGroup).filter(this::isNotBlank).toList()));
|
String.join(",", Arrays.stream(excludedGroup).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -262,7 +262,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #excludedGroups(String...)
|
* @see #excludedGroups(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation excludedGroups(Collection<String> excludedGroups) {
|
public PitestOperation excludedGroups(Collection<String> excludedGroups) {
|
||||||
options_.put("--excludedGroups", String.join(",", excludedGroups.stream().filter(this::isNotBlank).toList()));
|
options.put("--excludedGroups", String.join(",", excludedGroups.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -274,7 +274,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #excludedMethods(Collection)
|
* @see #excludedMethods(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation excludedMethods(String... excludedMethod) {
|
public PitestOperation excludedMethods(String... excludedMethod) {
|
||||||
options_.put("--excludedMethods",
|
options.put("--excludedMethods",
|
||||||
String.join(",", Arrays.stream(excludedMethod).filter(this::isNotBlank).toList()));
|
String.join(",", Arrays.stream(excludedMethod).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -287,7 +287,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #excludedMethods(String...)
|
* @see #excludedMethods(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation excludedMethods(Collection<String> excludedMethods) {
|
public PitestOperation excludedMethods(Collection<String> excludedMethods) {
|
||||||
options_.put("--excludedMethods",
|
options.put("--excludedMethods",
|
||||||
String.join(",", excludedMethods.stream().filter(this::isNotBlank).toList()));
|
String.join(",", excludedMethods.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -299,7 +299,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operation instance
|
* @return this operation instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation excludedRunners(String runners) {
|
public PitestOperation excludedRunners(String runners) {
|
||||||
options_.put("--excludedRunners", runners);
|
options.put("--excludedRunners", runners);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -312,7 +312,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #excludedTestClasses(Collection)
|
* @see #excludedTestClasses(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation excludedTestClasses(String... testClasses) {
|
public PitestOperation excludedTestClasses(String... testClasses) {
|
||||||
options_.put("--excludedTestClasses", String.join(",", testClasses));
|
options.put("--excludedTestClasses", String.join(",", testClasses));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -325,7 +325,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #excludedTestClasses(String...)
|
* @see #excludedTestClasses(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation excludedTestClasses(Collection<String> testClasses) {
|
public PitestOperation excludedTestClasses(Collection<String> testClasses) {
|
||||||
options_.put("--excludedTestClasses",
|
options.put("--excludedTestClasses",
|
||||||
String.join(",", testClasses.stream().filter(this::isNotBlank).toList()));
|
String.join(",", testClasses.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -338,8 +338,8 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
protected List<String> executeConstructProcessCommandList() {
|
protected List<String> executeConstructProcessCommandList() {
|
||||||
if (project_ == null) {
|
if (project_ == null) {
|
||||||
throw new IllegalArgumentException("A project must be specified.");
|
throw new IllegalArgumentException("A project must be specified.");
|
||||||
} else if (!options_.containsKey(SOURCE_DIRS)) {
|
} else if (!options.containsKey(SOURCE_DIRS)) {
|
||||||
options_.put(SOURCE_DIRS, project_.srcDirectory().getPath());
|
options.put(SOURCE_DIRS, project_.srcDirectory().getPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
final List<String> args = new ArrayList<>();
|
final List<String> args = new ArrayList<>();
|
||||||
|
@ -351,7 +351,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
project_.buildTestDirectory()));
|
project_.buildTestDirectory()));
|
||||||
args.add("org.pitest.mutationtest.commandline.MutationCoverageReport");
|
args.add("org.pitest.mutationtest.commandline.MutationCoverageReport");
|
||||||
|
|
||||||
options_.forEach((k, v) -> {
|
options.forEach((k, v) -> {
|
||||||
args.add(k);
|
args.add(k);
|
||||||
if (!v.isEmpty()) {
|
if (!v.isEmpty()) {
|
||||||
args.add(v);
|
args.add(v);
|
||||||
|
@ -383,9 +383,9 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation exportLineCoverage(boolean jsExport) {
|
public PitestOperation exportLineCoverage(boolean jsExport) {
|
||||||
if (jsExport) {
|
if (jsExport) {
|
||||||
options_.put("--exportLineCoverage", TRUE);
|
options.put("--exportLineCoverage", TRUE);
|
||||||
} else {
|
} else {
|
||||||
options_.put("--exportLineCoverage", FALSE);
|
options.put("--exportLineCoverage", FALSE);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -400,9 +400,9 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation failWhenNoMutations(boolean isFail) {
|
public PitestOperation failWhenNoMutations(boolean isFail) {
|
||||||
if (isFail) {
|
if (isFail) {
|
||||||
options_.put("--failWhenNoMutations", TRUE);
|
options.put("--failWhenNoMutations", TRUE);
|
||||||
} else {
|
} else {
|
||||||
options_.put("--failWhenNoMutations", FALSE);
|
options.put("--failWhenNoMutations", FALSE);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -415,7 +415,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #features(String...)
|
* @see #features(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation features(Collection<String> feature) {
|
public PitestOperation features(Collection<String> feature) {
|
||||||
options_.put("--features", String.join(",", feature.stream().filter(this::isNotBlank).toList()));
|
options.put("--features", String.join(",", feature.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -427,7 +427,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #features(Collection)
|
* @see #features(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation features(String... feature) {
|
public PitestOperation features(String... feature) {
|
||||||
options_.put("--features", String.join(",", Arrays.stream(feature).filter(this::isNotBlank).toList()));
|
options.put("--features", String.join(",", Arrays.stream(feature).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -439,9 +439,9 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation fullMutationMatrix(boolean isFullMutationMatrix) {
|
public PitestOperation fullMutationMatrix(boolean isFullMutationMatrix) {
|
||||||
if (isFullMutationMatrix) {
|
if (isFullMutationMatrix) {
|
||||||
options_.put("--fullMutationMatrix", TRUE);
|
options.put("--fullMutationMatrix", TRUE);
|
||||||
} else {
|
} else {
|
||||||
options_.put("--fullMutationMatrix", FALSE);
|
options.put("--fullMutationMatrix", FALSE);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -454,7 +454,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation historyInputLocation(String path) {
|
public PitestOperation historyInputLocation(String path) {
|
||||||
if (isNotBlank(path)) {
|
if (isNotBlank(path)) {
|
||||||
options_.put("--historyInputLocation", path);
|
options.put("--historyInputLocation", path);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -468,7 +468,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation historyOutputLocation(String path) {
|
public PitestOperation historyOutputLocation(String path) {
|
||||||
if (isNotBlank(path)) {
|
if (isNotBlank(path)) {
|
||||||
options_.put("--historyOutputLocation", path);
|
options.put("--historyOutputLocation", path);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -485,9 +485,9 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation includeLaunchClasspath(boolean isLaunchClasspath) {
|
public PitestOperation includeLaunchClasspath(boolean isLaunchClasspath) {
|
||||||
if (isLaunchClasspath) {
|
if (isLaunchClasspath) {
|
||||||
options_.put("--includeLaunchClasspath", TRUE);
|
options.put("--includeLaunchClasspath", TRUE);
|
||||||
} else {
|
} else {
|
||||||
options_.put("--includeLaunchClasspath", FALSE);
|
options.put("--includeLaunchClasspath", FALSE);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -501,7 +501,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #includedGroups(Collection)
|
* @see #includedGroups(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation includedGroups(String... includedGroup) {
|
public PitestOperation includedGroups(String... includedGroup) {
|
||||||
options_.put("--includedGroups",
|
options.put("--includedGroups",
|
||||||
String.join(",", Arrays.stream(includedGroup).filter(this::isNotBlank).toList()));
|
String.join(",", Arrays.stream(includedGroup).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -515,7 +515,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #includedGroups(String...)
|
* @see #includedGroups(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation includedGroups(Collection<String> includedGroups) {
|
public PitestOperation includedGroups(Collection<String> includedGroups) {
|
||||||
options_.put("--includedGroups", String.join(",", includedGroups.stream().filter(this::isNotBlank).toList()));
|
options.put("--includedGroups", String.join(",", includedGroups.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -526,7 +526,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operation instance
|
* @return this operation instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation includedTestMethods(String testMethod) {
|
public PitestOperation includedTestMethods(String testMethod) {
|
||||||
options_.put("--includedTestMethods", testMethod);
|
options.put("--includedTestMethods", testMethod);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -540,7 +540,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation inputEncoding(String encoding) {
|
public PitestOperation inputEncoding(String encoding) {
|
||||||
if (isNotBlank(encoding)) {
|
if (isNotBlank(encoding)) {
|
||||||
options_.put("--inputEncoding", encoding);
|
options.put("--inputEncoding", encoding);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -561,7 +561,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #jvmArgs(Collection)
|
* @see #jvmArgs(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation jvmArgs(String... args) {
|
public PitestOperation jvmArgs(String... args) {
|
||||||
options_.put("--jvmArgs", String.join(",", Arrays.stream(args).filter(this::isNotBlank).toList()));
|
options.put("--jvmArgs", String.join(",", Arrays.stream(args).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -574,7 +574,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #jvmArgs(String...)
|
* @see #jvmArgs(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation jvmArgs(Collection<String> args) {
|
public PitestOperation jvmArgs(Collection<String> args) {
|
||||||
options_.put("--jvmArgs", String.join(",", args.stream().filter(this::isNotBlank).toList()));
|
options.put("--jvmArgs", String.join(",", args.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -587,7 +587,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation jvmPath(String path) {
|
public PitestOperation jvmPath(String path) {
|
||||||
if (isNotBlank(path)) {
|
if (isNotBlank(path)) {
|
||||||
options_.put("--jvmPath", path);
|
options.put("--jvmPath", path);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -599,7 +599,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operation instance
|
* @return this operation instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation maxMutationsPerClass(int maxMutationsPerClass) {
|
public PitestOperation maxMutationsPerClass(int maxMutationsPerClass) {
|
||||||
options_.put("--maxMutationsPerClass", String.valueOf(maxMutationsPerClass));
|
options.put("--maxMutationsPerClass", String.valueOf(maxMutationsPerClass));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -610,7 +610,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operation instance
|
* @return this operation instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation maxSurviving(int maxSurviving) {
|
public PitestOperation maxSurviving(int maxSurviving) {
|
||||||
options_.put("--maxSurviving", String.valueOf(maxSurviving));
|
options.put("--maxSurviving", String.valueOf(maxSurviving));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -629,7 +629,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #mutableCodePaths(Collection)
|
* @see #mutableCodePaths(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation mutableCodePaths(String... path) {
|
public PitestOperation mutableCodePaths(String... path) {
|
||||||
options_.put("--mutableCodePaths", String.join(",", Arrays.stream(path).filter(this::isNotBlank).toList()));
|
options.put("--mutableCodePaths", String.join(",", Arrays.stream(path).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -648,7 +648,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #mutableCodePaths(String...)
|
* @see #mutableCodePaths(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation mutableCodePaths(Collection<String> paths) {
|
public PitestOperation mutableCodePaths(Collection<String> paths) {
|
||||||
options_.put("--mutableCodePaths", String.join(",", paths.stream().filter(this::isNotBlank).toList()));
|
options.put("--mutableCodePaths", String.join(",", paths.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -661,7 +661,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operation instance
|
* @return this operation instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation mutationEngine(String engine) {
|
public PitestOperation mutationEngine(String engine) {
|
||||||
options_.put("--mutationEngine", engine);
|
options.put("--mutationEngine", engine);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -677,7 +677,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation mutationThreshold(int threshold) {
|
public PitestOperation mutationThreshold(int threshold) {
|
||||||
if (threshold >= 0 && threshold <= 100) {
|
if (threshold >= 0 && threshold <= 100) {
|
||||||
options_.put("--mutationThreshold", String.valueOf(threshold));
|
options.put("--mutationThreshold", String.valueOf(threshold));
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -689,7 +689,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operation instance
|
* @return this operation instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation mutationUnitSize(int size) {
|
public PitestOperation mutationUnitSize(int size) {
|
||||||
options_.put("--mutationUnitSize", String.valueOf(size));
|
options.put("--mutationUnitSize", String.valueOf(size));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -701,7 +701,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #mutators(Collection)
|
* @see #mutators(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation mutators(String... mutator) {
|
public PitestOperation mutators(String... mutator) {
|
||||||
options_.put("--mutators", String.join(",", Arrays.stream(mutator).filter(this::isNotBlank).toList()));
|
options.put("--mutators", String.join(",", Arrays.stream(mutator).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -713,19 +713,10 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #mutators(String...)
|
* @see #mutators(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation mutators(Collection<String> mutators) {
|
public PitestOperation mutators(Collection<String> mutators) {
|
||||||
options_.put("--mutators", String.join(",", mutators.stream().filter(this::isNotBlank).toList()));
|
options.put("--mutators", String.join(",", mutators.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the PIT options.
|
|
||||||
*
|
|
||||||
* @return the map of options
|
|
||||||
*/
|
|
||||||
public Map<String, String> options() {
|
|
||||||
return options_;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Output encoding.
|
* Output encoding.
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -736,7 +727,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation outputEncoding(String encoding) {
|
public PitestOperation outputEncoding(String encoding) {
|
||||||
if (isNotBlank(encoding)) {
|
if (isNotBlank(encoding)) {
|
||||||
options_.put("--outputEncoding", encoding);
|
options.put("--outputEncoding", encoding);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -752,7 +743,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #outputFormats(Collection)
|
* @see #outputFormats(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation outputFormats(String... outputFormat) {
|
public PitestOperation outputFormats(String... outputFormat) {
|
||||||
options_.put("--outputFormats",
|
options.put("--outputFormats",
|
||||||
String.join(",", Arrays.stream(outputFormat).filter(this::isNotBlank).toList()));
|
String.join(",", Arrays.stream(outputFormat).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -768,7 +759,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #outputFormats(String...)
|
* @see #outputFormats(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation outputFormats(Collection<String> outputFormats) {
|
public PitestOperation outputFormats(Collection<String> outputFormats) {
|
||||||
options_.put("--outputFormats", String.join(",", outputFormats.stream().filter(this::isNotBlank).toList()));
|
options.put("--outputFormats", String.join(",", outputFormats.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -780,7 +771,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operation instance
|
* @return this operation instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation pluginConfiguration(String key, String value) {
|
public PitestOperation pluginConfiguration(String key, String value) {
|
||||||
options_.put("--pluginConfiguration", key + '=' + value);
|
options.put("--pluginConfiguration", key + '=' + value);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -791,7 +782,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operations instance
|
* @return this operations instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation projectBase(String file) {
|
public PitestOperation projectBase(String file) {
|
||||||
options_.put("--projectBase", file);
|
options.put("--projectBase", file);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -803,7 +794,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation reportDir(String dir) {
|
public PitestOperation reportDir(String dir) {
|
||||||
if (isNotBlank(dir)) {
|
if (isNotBlank(dir)) {
|
||||||
options_.put("--reportDir", dir);
|
options.put("--reportDir", dir);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -818,9 +809,9 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation skipFailingTests(boolean isSkipFail) {
|
public PitestOperation skipFailingTests(boolean isSkipFail) {
|
||||||
if (isSkipFail) {
|
if (isSkipFail) {
|
||||||
options_.put("--skipFailingTests", TRUE);
|
options.put("--skipFailingTests", TRUE);
|
||||||
} else {
|
} else {
|
||||||
options_.put("--skipFailingTests", FALSE);
|
options.put("--skipFailingTests", FALSE);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -833,7 +824,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #sourceDirs(Collection)
|
* @see #sourceDirs(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation sourceDirs(String... dir) {
|
public PitestOperation sourceDirs(String... dir) {
|
||||||
options_.put(SOURCE_DIRS, String.join(",", Arrays.stream(dir).filter(this::isNotBlank).toList()));
|
options.put(SOURCE_DIRS, String.join(",", Arrays.stream(dir).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -845,7 +836,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #sourceDirs(String...)
|
* @see #sourceDirs(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation sourceDirs(Collection<String> dirs) {
|
public PitestOperation sourceDirs(Collection<String> dirs) {
|
||||||
options_.put(SOURCE_DIRS, String.join(",", dirs.stream().filter(this::isNotBlank).toList()));
|
options.put(SOURCE_DIRS, String.join(",", dirs.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -863,7 +854,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #targetClasses(Collection)
|
* @see #targetClasses(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation targetClasses(Collection<String> targetClass) {
|
public PitestOperation targetClasses(Collection<String> targetClass) {
|
||||||
options_.put("--targetClasses", String.join(",", targetClass.stream().filter(this::isNotBlank).toList()));
|
options.put("--targetClasses", String.join(",", targetClass.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -881,7 +872,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #targetClasses(String...)
|
* @see #targetClasses(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation targetClasses(String... targetClass) {
|
public PitestOperation targetClasses(String... targetClass) {
|
||||||
options_.put("--targetClasses", String.join(",", Arrays.stream(targetClass).filter(this::isNotBlank).toList()));
|
options.put("--targetClasses", String.join(",", Arrays.stream(targetClass).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -898,7 +889,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #targetTests(Collection)
|
* @see #targetTests(Collection)
|
||||||
*/
|
*/
|
||||||
public PitestOperation targetTests(String... test) {
|
public PitestOperation targetTests(String... test) {
|
||||||
options_.put("--targetTests", String.join(",", Arrays.stream(test).filter(this::isNotBlank).toList()));
|
options.put("--targetTests", String.join(",", Arrays.stream(test).filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -915,7 +906,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @see #targetTests(String...)
|
* @see #targetTests(String...)
|
||||||
*/
|
*/
|
||||||
public PitestOperation targetTests(Collection<String> tests) {
|
public PitestOperation targetTests(Collection<String> tests) {
|
||||||
options_.put("--targetTests", String.join(",", tests.stream().filter(this::isNotBlank).toList()));
|
options.put("--targetTests", String.join(",", tests.stream().filter(this::isNotBlank).toList()));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -926,7 +917,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operation instance
|
* @return this operation instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation testStrengthThreshold(int threshold) {
|
public PitestOperation testStrengthThreshold(int threshold) {
|
||||||
options_.put("--testStrengthThreshold", String.valueOf(threshold));
|
options.put("--testStrengthThreshold", String.valueOf(threshold));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -937,7 +928,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operation instance
|
* @return this operation instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation threads(int threads) {
|
public PitestOperation threads(int threads) {
|
||||||
options_.put("--threads", String.valueOf(threads));
|
options.put("--threads", String.valueOf(threads));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -951,7 +942,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operation instance
|
* @return this operation instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation timeoutConst(int factor) {
|
public PitestOperation timeoutConst(int factor) {
|
||||||
options_.put("--timeoutConst", String.valueOf(factor));
|
options.put("--timeoutConst", String.valueOf(factor));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -964,7 +955,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operation instance
|
* @return this operation instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation timeoutFactor(double factor) {
|
public PitestOperation timeoutFactor(double factor) {
|
||||||
options_.put("--timeoutFactor", String.valueOf(factor));
|
options.put("--timeoutFactor", String.valueOf(factor));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -979,9 +970,9 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation timestampedReports(boolean isTimestamped) {
|
public PitestOperation timestampedReports(boolean isTimestamped) {
|
||||||
if (isTimestamped) {
|
if (isTimestamped) {
|
||||||
options_.put("--timestampedReports", TRUE);
|
options.put("--timestampedReports", TRUE);
|
||||||
} else {
|
} else {
|
||||||
options_.put("--timestampedReports", FALSE);
|
options.put("--timestampedReports", FALSE);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -996,9 +987,9 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation useClasspathJar(boolean isUseClasspathJar) {
|
public PitestOperation useClasspathJar(boolean isUseClasspathJar) {
|
||||||
if (isUseClasspathJar) {
|
if (isUseClasspathJar) {
|
||||||
options_.put("--useClasspathJar", TRUE);
|
options.put("--useClasspathJar", TRUE);
|
||||||
} else {
|
} else {
|
||||||
options_.put("--useClasspathJar", FALSE);
|
options.put("--useClasspathJar", FALSE);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -1013,9 +1004,9 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
*/
|
*/
|
||||||
public PitestOperation verbose(boolean isVerbose) {
|
public PitestOperation verbose(boolean isVerbose) {
|
||||||
if (isVerbose) {
|
if (isVerbose) {
|
||||||
options_.put("--verbose", TRUE);
|
options.put("--verbose", TRUE);
|
||||||
} else {
|
} else {
|
||||||
options_.put("--verbose", FALSE);
|
options.put("--verbose", FALSE);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -1029,7 +1020,7 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
* @return this operation instance
|
* @return this operation instance
|
||||||
*/
|
*/
|
||||||
public PitestOperation verbosity(String verbosity) {
|
public PitestOperation verbosity(String verbosity) {
|
||||||
options_.put("--verbosity", verbosity);
|
options.put("--verbosity", verbosity);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.argLine(FOO);
|
.argLine(FOO);
|
||||||
assertThat(op.options().get("--argLine")).isEqualTo(FOO);
|
assertThat(op.options.get("--argLine")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -50,12 +50,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.avoidCallsTo(FOO, BAR);
|
.avoidCallsTo(FOO, BAR);
|
||||||
assertThat(op.options().get("--avoidCallsTo")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--avoidCallsTo")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.avoidCallsTo(List.of(FOO, BAR));
|
.avoidCallsTo(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--avoidCallsTo")).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--avoidCallsTo")).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -134,12 +134,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.classPath(FOO, BAR);
|
.classPath(FOO, BAR);
|
||||||
assertThat(op.options().get("--classPath")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--classPath")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.classPath(List.of(FOO, BAR));
|
.classPath(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--classPath")).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--classPath")).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -147,7 +147,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.classPathFile(FOO);
|
.classPathFile(FOO);
|
||||||
assertThat(op.options().get("--classPathFile")).isEqualTo(FOO);
|
assertThat(op.options.get("--classPathFile")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -155,12 +155,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.coverageThreshold(3);
|
.coverageThreshold(3);
|
||||||
assertThat(op.options().get("--coverageThreshold")).isEqualTo("3");
|
assertThat(op.options.get("--coverageThreshold")).isEqualTo("3");
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.coverageThreshold(101);
|
.coverageThreshold(101);
|
||||||
assertThat(op.options().get("--coverageThreshold")).isNull();
|
assertThat(op.options.get("--coverageThreshold")).isNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -168,12 +168,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.detectInlinedCode(true);
|
.detectInlinedCode(true);
|
||||||
assertThat(op.options().get("--detectInlinedCode")).isEqualTo(TRUE);
|
assertThat(op.options.get("--detectInlinedCode")).isEqualTo(TRUE);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.detectInlinedCode(false);
|
.detectInlinedCode(false);
|
||||||
assertThat(op.options().get("--detectInlinedCode")).isEqualTo(FALSE);
|
assertThat(op.options.get("--detectInlinedCode")).isEqualTo(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -181,12 +181,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.excludedClasses(FOO, BAR);
|
.excludedClasses(FOO, BAR);
|
||||||
assertThat(op.options().get("--excludedClasses")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--excludedClasses")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.excludedClasses(Set.of(FOO, BAR));
|
.excludedClasses(Set.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--excludedClasses")).as("as set").contains(FOO).contains(BAR).contains(",");
|
assertThat(op.options.get("--excludedClasses")).as("as set").contains(FOO).contains(BAR).contains(",");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -194,12 +194,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.excludedGroups(FOO, BAR);
|
.excludedGroups(FOO, BAR);
|
||||||
assertThat(op.options().get("--excludedGroups")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--excludedGroups")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.excludedGroups(List.of(FOO, BAR));
|
.excludedGroups(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--excludedGroups")).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--excludedGroups")).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -207,12 +207,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.excludedMethods(FOO, BAR);
|
.excludedMethods(FOO, BAR);
|
||||||
assertThat(op.options().get("--excludedMethods")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--excludedMethods")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.excludedMethods(List.of(FOO, BAR));
|
.excludedMethods(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--excludedMethods")).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--excludedMethods")).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -220,7 +220,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.excludedRunners(FOO);
|
.excludedRunners(FOO);
|
||||||
assertThat(op.options().get("--excludedRunners")).isEqualTo(FOO);
|
assertThat(op.options.get("--excludedRunners")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -228,12 +228,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.excludedTestClasses(FOO, BAR);
|
.excludedTestClasses(FOO, BAR);
|
||||||
assertThat(op.options().get("--excludedTestClasses")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--excludedTestClasses")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.excludedTestClasses(List.of(FOO, BAR));
|
.excludedTestClasses(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--excludedTestClasses")).as("as list").isEqualTo(FOOBAR);
|
assertThat(op.options.get("--excludedTestClasses")).as("as list").isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -292,12 +292,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.exportLineCoverage(true);
|
.exportLineCoverage(true);
|
||||||
assertThat(op.options().get("--exportLineCoverage")).isEqualTo(TRUE);
|
assertThat(op.options.get("--exportLineCoverage")).isEqualTo(TRUE);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.exportLineCoverage(false);
|
.exportLineCoverage(false);
|
||||||
assertThat(op.options().get("--exportLineCoverage")).isEqualTo(FALSE);
|
assertThat(op.options.get("--exportLineCoverage")).isEqualTo(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -305,12 +305,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.failWhenNoMutations(true);
|
.failWhenNoMutations(true);
|
||||||
assertThat(op.options().get("--failWhenNoMutations")).isEqualTo(TRUE);
|
assertThat(op.options.get("--failWhenNoMutations")).isEqualTo(TRUE);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.failWhenNoMutations(false);
|
.failWhenNoMutations(false);
|
||||||
assertThat(op.options().get("--failWhenNoMutations")).isEqualTo(FALSE);
|
assertThat(op.options.get("--failWhenNoMutations")).isEqualTo(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -318,12 +318,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.features(FOO, BAR);
|
.features(FOO, BAR);
|
||||||
assertThat(op.options().get("--features")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--features")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.features(List.of(FOO, BAR));
|
.features(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--features")).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--features")).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -331,7 +331,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.fullMutationMatrix(true);
|
.fullMutationMatrix(true);
|
||||||
assertThat(op.options().get("--fullMutationMatrix")).isEqualTo(TRUE);
|
assertThat(op.options.get("--fullMutationMatrix")).isEqualTo(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -339,7 +339,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.historyInputLocation(FOO);
|
.historyInputLocation(FOO);
|
||||||
assertThat(op.options().get("--historyInputLocation")).isEqualTo(FOO);
|
assertThat(op.options.get("--historyInputLocation")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -347,7 +347,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.historyOutputLocation(FOO);
|
.historyOutputLocation(FOO);
|
||||||
assertThat(op.options().get("--historyOutputLocation")).isEqualTo(FOO);
|
assertThat(op.options.get("--historyOutputLocation")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -355,12 +355,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.includeLaunchClasspath(true);
|
.includeLaunchClasspath(true);
|
||||||
assertThat(op.options().get("--includeLaunchClasspath")).isEqualTo(TRUE);
|
assertThat(op.options.get("--includeLaunchClasspath")).isEqualTo(TRUE);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.includeLaunchClasspath(false);
|
.includeLaunchClasspath(false);
|
||||||
assertThat(op.options().get("--includeLaunchClasspath")).isEqualTo(FALSE);
|
assertThat(op.options.get("--includeLaunchClasspath")).isEqualTo(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -368,12 +368,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.includedGroups(FOO, BAR);
|
.includedGroups(FOO, BAR);
|
||||||
assertThat(op.options().get("--includedGroups")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--includedGroups")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.includedGroups(List.of(FOO, BAR));
|
.includedGroups(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--includedGroups")).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--includedGroups")).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -381,7 +381,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.includedTestMethods(FOO);
|
.includedTestMethods(FOO);
|
||||||
assertThat(op.options().get("--includedTestMethods")).isEqualTo(FOO);
|
assertThat(op.options.get("--includedTestMethods")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -389,7 +389,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.inputEncoding(FOO);
|
.inputEncoding(FOO);
|
||||||
assertThat(op.options().get("--inputEncoding")).isEqualTo(FOO);
|
assertThat(op.options.get("--inputEncoding")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -397,12 +397,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.jvmArgs(FOO, BAR);
|
.jvmArgs(FOO, BAR);
|
||||||
assertThat(op.options().get("--jvmArgs")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--jvmArgs")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.jvmArgs(List.of(FOO, BAR));
|
.jvmArgs(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--jvmArgs")).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--jvmArgs")).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -410,7 +410,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.jvmPath(FOO);
|
.jvmPath(FOO);
|
||||||
assertThat(op.options().get("--jvmPath")).isEqualTo(FOO);
|
assertThat(op.options.get("--jvmPath")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -418,7 +418,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.maxMutationsPerClass(12);
|
.maxMutationsPerClass(12);
|
||||||
assertThat(op.options().get("--maxMutationsPerClass")).isEqualTo("12");
|
assertThat(op.options.get("--maxMutationsPerClass")).isEqualTo("12");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -426,7 +426,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.maxSurviving(1);
|
.maxSurviving(1);
|
||||||
assertThat(op.options().get("--maxSurviving")).isEqualTo("1");
|
assertThat(op.options.get("--maxSurviving")).isEqualTo("1");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -434,12 +434,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.mutableCodePaths(FOO, BAR);
|
.mutableCodePaths(FOO, BAR);
|
||||||
assertThat(op.options().get("--mutableCodePaths")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--mutableCodePaths")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.mutableCodePaths(List.of(FOO, BAR));
|
.mutableCodePaths(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--mutableCodePaths")).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--mutableCodePaths")).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -447,7 +447,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.mutationEngine(FOO);
|
.mutationEngine(FOO);
|
||||||
assertThat(op.options().get("--mutationEngine")).isEqualTo(FOO);
|
assertThat(op.options.get("--mutationEngine")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -455,12 +455,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.mutationThreshold(3);
|
.mutationThreshold(3);
|
||||||
assertThat(op.options().get("--mutationThreshold")).isEqualTo("3");
|
assertThat(op.options.get("--mutationThreshold")).isEqualTo("3");
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.mutationThreshold(101);
|
.mutationThreshold(101);
|
||||||
assertThat(op.options().get("--mutationThreshold")).isNull();
|
assertThat(op.options.get("--mutationThreshold")).isNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -468,7 +468,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.mutationUnitSize(2);
|
.mutationUnitSize(2);
|
||||||
assertThat(op.options().get("--mutationUnitSize")).isEqualTo("2");
|
assertThat(op.options.get("--mutationUnitSize")).isEqualTo("2");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -476,12 +476,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.mutators(FOO, BAR);
|
.mutators(FOO, BAR);
|
||||||
assertThat(op.options().get("--mutators")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--mutators")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.mutators(List.of(FOO, BAR));
|
.mutators(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--mutators")).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--mutators")).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -489,7 +489,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.outputEncoding(FOO);
|
.outputEncoding(FOO);
|
||||||
assertThat(op.options().get("--outputEncoding")).isEqualTo(FOO);
|
assertThat(op.options.get("--outputEncoding")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -497,12 +497,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.outputFormats(FOO, BAR);
|
.outputFormats(FOO, BAR);
|
||||||
assertThat(op.options().get("--outputFormats")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--outputFormats")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.outputFormats(List.of(FOO, BAR));
|
.outputFormats(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--outputFormats")).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--outputFormats")).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -510,7 +510,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.pluginConfiguration(FOO, BAR);
|
.pluginConfiguration(FOO, BAR);
|
||||||
assertThat(op.options().get("--pluginConfiguration")).isEqualTo(FOO + "=" + BAR);
|
assertThat(op.options.get("--pluginConfiguration")).isEqualTo(FOO + "=" + BAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -518,7 +518,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.projectBase(FOO);
|
.projectBase(FOO);
|
||||||
assertThat(op.options().get("--projectBase")).isEqualTo(FOO);
|
assertThat(op.options.get("--projectBase")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -526,7 +526,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.reportDir(FOO);
|
.reportDir(FOO);
|
||||||
assertThat(op.options().get("--reportDir")).isEqualTo(FOO);
|
assertThat(op.options.get("--reportDir")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -534,12 +534,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.skipFailingTests(true);
|
.skipFailingTests(true);
|
||||||
assertThat(op.options().get("--skipFailingTests")).isEqualTo(TRUE);
|
assertThat(op.options.get("--skipFailingTests")).isEqualTo(TRUE);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.skipFailingTests(false);
|
.skipFailingTests(false);
|
||||||
assertThat(op.options().get("--skipFailingTests")).isEqualTo(FALSE);
|
assertThat(op.options.get("--skipFailingTests")).isEqualTo(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -547,12 +547,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.sourceDirs(FOO, BAR);
|
.sourceDirs(FOO, BAR);
|
||||||
assertThat(op.options().get(SOURCE_DIRS)).isEqualTo(FOOBAR);
|
assertThat(op.options.get(SOURCE_DIRS)).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.sourceDirs(List.of(FOO, BAR));
|
.sourceDirs(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get(SOURCE_DIRS)).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get(SOURCE_DIRS)).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -560,12 +560,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.targetClasses(FOO, BAR);
|
.targetClasses(FOO, BAR);
|
||||||
assertThat(op.options().get("--targetClasses")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--targetClasses")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.targetClasses(List.of(FOO, BAR));
|
.targetClasses(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--targetClasses")).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--targetClasses")).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -573,12 +573,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.targetTests(FOO, BAR);
|
.targetTests(FOO, BAR);
|
||||||
assertThat(op.options().get("--targetTests")).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--targetTests")).isEqualTo(FOOBAR);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.targetTests(List.of(FOO, BAR));
|
.targetTests(List.of(FOO, BAR));
|
||||||
assertThat(op.options().get("--targetTests")).as(AS_LIST).isEqualTo(FOOBAR);
|
assertThat(op.options.get("--targetTests")).as(AS_LIST).isEqualTo(FOOBAR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -586,7 +586,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.testStrengthThreshold(6);
|
.testStrengthThreshold(6);
|
||||||
assertThat(op.options().get("--testStrengthThreshold")).isEqualTo("6");
|
assertThat(op.options.get("--testStrengthThreshold")).isEqualTo("6");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -594,7 +594,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.threads(3);
|
.threads(3);
|
||||||
assertThat(op.options().get("--threads")).isEqualTo("3");
|
assertThat(op.options.get("--threads")).isEqualTo("3");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -602,7 +602,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.timeoutConst(300);
|
.timeoutConst(300);
|
||||||
assertThat(op.options().get("--timeoutConst")).isEqualTo("300");
|
assertThat(op.options.get("--timeoutConst")).isEqualTo("300");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -610,7 +610,7 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.timeoutFactor(5.25);
|
.timeoutFactor(5.25);
|
||||||
assertThat(op.options().get("--timeoutFactor")).isEqualTo("5.25");
|
assertThat(op.options.get("--timeoutFactor")).isEqualTo("5.25");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -618,12 +618,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.timestampedReports(true);
|
.timestampedReports(true);
|
||||||
assertThat(op.options().get("--timestampedReports")).isEqualTo(TRUE);
|
assertThat(op.options.get("--timestampedReports")).isEqualTo(TRUE);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.timestampedReports(false);
|
.timestampedReports(false);
|
||||||
assertThat(op.options().get("--timestampedReports")).isEqualTo(FALSE);
|
assertThat(op.options.get("--timestampedReports")).isEqualTo(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -631,12 +631,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.useClasspathJar(true);
|
.useClasspathJar(true);
|
||||||
assertThat(op.options().get("--useClasspathJar")).isEqualTo(TRUE);
|
assertThat(op.options.get("--useClasspathJar")).isEqualTo(TRUE);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.useClasspathJar(false);
|
.useClasspathJar(false);
|
||||||
assertThat(op.options().get("--useClasspathJar")).isEqualTo(FALSE);
|
assertThat(op.options.get("--useClasspathJar")).isEqualTo(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -644,12 +644,12 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new BaseProject())
|
.fromProject(new BaseProject())
|
||||||
.verbose(true);
|
.verbose(true);
|
||||||
assertThat(op.options().get("--verbose")).isEqualTo(TRUE);
|
assertThat(op.options.get("--verbose")).isEqualTo(TRUE);
|
||||||
|
|
||||||
op = new PitestOperation()
|
op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.verbose(false);
|
.verbose(false);
|
||||||
assertThat(op.options().get("--verbose")).isEqualTo(FALSE);
|
assertThat(op.options.get("--verbose")).isEqualTo(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -657,6 +657,6 @@ class PitestOperationTest {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
.fromProject(new Project())
|
.fromProject(new Project())
|
||||||
.verbosity(FOO);
|
.verbosity(FOO);
|
||||||
assertThat(op.options().get("--verbosity")).isEqualTo(FOO);
|
assertThat(op.options.get("--verbosity")).isEqualTo(FOO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue