Skip to content

Commit 593bfe5

Browse files
committed
Updated Test Cases and Pom File
Submission of the updated pom.xml file and the ES generated test cases for the 10 selected classes (CommandLine, DefaultParser, GnuParser, HelpFormatter, Option, Options, OptionBuilder, OptionValidator, Parser, Util)
1 parent a7c65c3 commit 593bfe5

21 files changed

Lines changed: 10270 additions & 7 deletions

pom.xml

Lines changed: 94 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>org.apache.commons</groupId>
2121
<artifactId>commons-parent</artifactId>
22-
<version>92</version>
22+
<version>91</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525
<groupId>commons-cli</groupId>
@@ -45,6 +45,18 @@
4545
<url>https://github.com/apache/commons-cli/actions</url>
4646
</ciManagement>
4747
<dependencies>
48+
<dependency>
49+
<groupId>org.evosuite</groupId>
50+
<artifactId>evosuite-standalone-runtime</artifactId>
51+
<version>${evosuite.version}</version>
52+
<scope>test</scope>
53+
</dependency>
54+
<dependency>
55+
<groupId>junit</groupId>
56+
<artifactId>junit</artifactId>
57+
<version>4.13.2</version>
58+
<scope>test</scope>
59+
</dependency>
4860
<dependency>
4961
<groupId>org.junit.jupiter</groupId>
5062
<artifactId>junit-jupiter-api</artifactId>
@@ -91,12 +103,12 @@
91103
<maven.compiler.target>1.8</maven.compiler.target>
92104
<commons.componentid>cli</commons.componentid>
93105
<commons.module.name>org.apache.commons.cli</commons.module.name>
94-
<commons.release.version>1.11.1</commons.release.version>
95-
<commons.release.next>1.11.2</commons.release.next>
106+
<commons.release.version>1.11.0</commons.release.version>
107+
<commons.release.next>1.11.1</commons.release.next>
96108
<commons.release.name>commons-cli-${commons.release.version}</commons.release.name>
97109
<commons.release.isDistModule>true</commons.release.isDistModule>
98110
<commons.rc.version>RC1</commons.rc.version>
99-
<commons.bc.version>1.11.0</commons.bc.version>
111+
<commons.bc.version>1.10.0</commons.bc.version>
100112
<commons.osgi.symbolicName>org.apache.commons.cli</commons.osgi.symbolicName>
101113
<commons.jira.id>CLI</commons.jira.id>
102114
<commons.jira.pid>12310463</commons.jira.pid>
@@ -111,11 +123,77 @@
111123
<commons.jacoco.branchRatio>0.95</commons.jacoco.branchRatio>
112124
<commons.jacoco.lineRatio>0.98</commons.jacoco.lineRatio>
113125
<commons.jacoco.complexityRatio>0.94</commons.jacoco.complexityRatio>
126+
<evosuite.version>1.0.6</evosuite.version>
127+
<rat.skip>>true</rat.skip>
114128
</properties>
115129
<build>
116130
<defaultGoal>clean verify apache-rat:check japicmp:cmp checkstyle:check spotbugs:check pmd:check javadoc:javadoc</defaultGoal>
117131
<pluginManagement>
118132
<plugins>
133+
<plugin>
134+
<groupId>org.evosuite.plugins</groupId>
135+
<artifactId>evosuite-maven-plugin</artifactId>
136+
<version>${evosuite.version}</version>
137+
<executions>
138+
<!-- prepares the runtime listener so EvoSuite tests run with surefire -->
139+
<execution>
140+
<goals><goal>prepare</goal></goals>
141+
<phase>process-test-classes</phase>
142+
</execution>
143+
</executions>
144+
</plugin>
145+
<plugin>
146+
<groupId>org.apache.maven.plugins</groupId>
147+
<artifactId>maven-surefire-plugin</artifactId>
148+
<version>2.22.2</version>
149+
<configuration>
150+
<properties>
151+
<property>
152+
<name>listener</name>
153+
<value></value>
154+
</property>
155+
</properties>
156+
</configuration>
157+
</plugin>
158+
<plugin>
159+
<groupId>org.jacoco</groupId>
160+
<artifactId>jacoco-maven-plugin</artifactId>
161+
<version>0.8.7</version>
162+
<executions>
163+
<execution>
164+
<goals>
165+
<goal>prepare-agent</goal>
166+
</goals>
167+
</execution>
168+
<execution>
169+
<id>report</id>
170+
<phase>test</phase>
171+
<goals>
172+
<goal>report</goal>
173+
</goals>
174+
</execution>
175+
</executions>
176+
</plugin>
177+
<plugin>
178+
<groupId>org.pitest</groupId>
179+
<artifactId>pitest-maven</artifactId>
180+
<version>1.14.0</version>
181+
<configuration>
182+
<targetClasses>
183+
<param>org.apache.commons.cli*</param>
184+
</targetClasses>
185+
<targetTests>
186+
<param>org.apache.commons.cli.*</param>>
187+
</targetTests>
188+
</configuration>
189+
<dependencies>
190+
<dependency>
191+
<groupId>org.pitest</groupId>
192+
<artifactId>pitest-junit5-plugin</artifactId>
193+
<version>1.2.2</version>
194+
</dependency>
195+
</dependencies>
196+
</plugin>
119197
<plugin>
120198
<groupId>org.apache.maven.plugins</groupId>
121199
<artifactId>maven-checkstyle-plugin</artifactId>
@@ -129,9 +207,11 @@
129207
<plugin>
130208
<groupId>com.github.spotbugs</groupId>
131209
<artifactId>spotbugs-maven-plugin</artifactId>
132-
<configuration>
133-
<excludeFilterFile>${basedir}/src/conf/spotbugs-exclude-filter.xml</excludeFilterFile>
134-
</configuration>
210+
<!--
211+
<configuration>
212+
<excludeFilterFile>${basedir}/src/conf/spotbugs-exclude-filter.xml</excludeFilterFile>
213+
</configuration>
214+
-->
135215
</plugin>
136216
<plugin>
137217
<groupId>org.apache.maven.plugins</groupId>
@@ -169,6 +249,13 @@
169249
</plugin>
170250
</plugins>
171251
</build>
252+
<pluginRepositories>
253+
<pluginRepository>
254+
<id>EvoSuite</id>
255+
<name>EvoSuite Repository</name>
256+
<url>http://www.evosuite.org/m2</url>
257+
</pluginRepository>
258+
</pluginRepositories>
172259
<reporting>
173260
<plugins>
174261
<plugin>

0 commit comments

Comments
 (0)