Skip to content

Commit f898bee

Browse files
author
enztngh
committed
GITHUB-3196: support to execlude somes 'test' in option of command line
1 parent 242b9c3 commit f898bee

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

CHANGES.txt

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Fixed: GITHUB-3122: Update JCommander to 1.83 (Antoine Dessaigne)
66
Fixed: GITHUB-3135: assertEquals on arrays - Failure message is missing information about the array index when an array element is unexpectedly null or non-null (Albert Choi)
77
Fixed: GITHUB-3140: assertEqualsDeep on Sets - Deep comparison was using the wrong expected value
88
Fixed: GITHUB-3189: Incorrect number of ignored tests displayed in the XML results
9+
Fixed: GITHUB-3196: support to execlude somes 'test' in option of command line
910

1011
7.10.2
1112
Fixed: GITHUB-3117: ListenerComparator doesn't work (Krishnan Mahadevan)

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
[![Sonarqube Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=org.testng%3Atestng&metric=alert_status)](https://sonarcloud.io/dashboard?id=org.testng%3Atestng)
55

66
Documentation available at [TestNG's main web site](https://testng.org). Visit [TestNG Documentation's GitHub Repo](https://github.com/testng-team/testng-team.github.io) to contribute to it.
7-
###
87
### Release Notes
98
* [7.10.0](https://groups.google.com/g/testng-users/c/6DmFaKUjIxY)
109
* [7.9.0](https://groups.google.com/g/testng-users/c/nN7LkuZWO48)

testng-core/src/main/java/org/testng/xml/internal/TestNamesMatcher.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private XmlSuite cloneIfSuiteContainTestsWithNamesMatchingAny(XmlSuite suite) {
109109
tests.add(xt);
110110
matchedTestNames.add(xt.getName());
111111
matchedTests.add(xt);
112-
}else{
112+
} else {
113113
missedTestNames.add(xt.getName());
114114
missedTests.add(xt);
115115
}

testng-core/src/test/java/org/testng/xml/XmlTestTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public void testNameMatchesAny() {
2121
}
2222

2323
@Test(description = "GITHUB-3196")
24-
public void testNameMatchesAnyWithRegex(){
24+
public void testNameMatchesAnyWithRegex() {
2525
XmlSuite xmlSuite = createDummySuiteWithTestNamesAs("test1");
2626
XmlTest xmlTest = xmlSuite.getTests().get(0);
2727
assertThat(xmlTest.nameMatchesAny(Collections.singletonList("^(test1$).*"))).isTrue();

0 commit comments

Comments
 (0)