Skip to content

Commit d327735

Browse files
authored
Merge pull request #21 from CleverTap/testcase_name_wildcard
added wildcard to testcase name.
2 parents a2c4cbe + 6345e4e commit d327735

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>com.clevertap</groupId>
88
<artifactId>supertest-maven-plugin</artifactId>
99
<packaging>maven-plugin</packaging>
10-
<version>1.7</version>
10+
<version>1.8</version>
1111
<description>A wrapper for Maven's Surefire Plugin, with advanced re-run capabilities.</description>
1212
<name>supertest-maven-plugin</name>
1313
<url>https://github.com/CleverTap/supertest-maven-plugin</url>

src/main/java/com/clevertap/maven/plugins/supertest/SuperTestMavenPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public String createRerunCommand(Map<String, List<String>> classnameToTestcaseLi
157157
}
158158
retryRun.append("#");
159159
for (int i = 0; i < failedTestCaseList.size(); i++) {
160-
retryRun.append(failedTestCaseList.get(i));
160+
retryRun.append(failedTestCaseList.get(i)).append("*");
161161
if (i == failedTestCaseList.size() - 1) {
162162
retryRun.append(",");
163163
} else {

src/test/java/com/clevertap/maven/plugins/supertest/SuperTestMavenPluginTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void createRerunCommandTest() throws IOException, ParserConfigurationException,
3131
String rerunCommand = bv.createRerunCommand(classnameToTestcaseList);
3232
System.out.println(rerunCommand);
3333
// added additional condition because hashset can give any order
34-
assertTrue("mvn test -Dtest=com.example.FooTest,com.example.BarTest#barTest1+barTest2,".equals(rerunCommand)
35-
|| "mvn test -Dtest=com.example.FooTest,com.example.BarTest#barTest2+barTest1,".equals(rerunCommand));
34+
assertTrue("mvn test -Dtest=com.example.FooTest,com.example.BarTest#barTest1*+barTest2*,".equals(rerunCommand)
35+
|| "mvn test -Dtest=com.example.FooTest,com.example.BarTest#barTest2*+barTest1*,".equals(rerunCommand));
3636
}
3737
}

src/test/java/com/clevertap/maven/plugins/supertest/ValidIdentifierTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ void testValidIdentifier() throws IOException, ParserConfigurationException, SAX
2727

2828
String rerunCommand = bv.createRerunCommand(classnameToTestcaseList);
2929
System.out.println(rerunCommand);
30-
assertEquals("mvn test -Dtest=com.validIdentifierTest#fooTest,", rerunCommand);
30+
assertEquals("mvn test -Dtest=com.validIdentifierTest#fooTest*,", rerunCommand);
3131
}
3232
}

0 commit comments

Comments
 (0)