File tree 3 files changed +9
-7
lines changed
testng-core/src/main/java/org/testng/internal
testng-core-api/src/main/java/org/testng/internal
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
Current
2
+ Fixed: GITHUB-2563: Skip test if its data provider provides no data (Krishnan Mahadevan)
2
3
Fixed: GITHUB-2535: TestResult.getEndMillis() returns 0 for skipped configuration - after upgrading testng to 7.0 + (Krishnan Mahadevan)
3
4
Fixed: GITHUB-2638: "[WARN] Ignoring duplicate listener" appears when running .xml suite with <listeners> and <suite-files> (Krishnan Mahadevan)
4
5
Fixed: GITHUB-1297: Passed configuration methods appear in testng-failed.xml , when failure was after passed test (Dzmitry Sankouski)
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ public static void error(String errorMessage) {
240
240
}
241
241
242
242
public static void warn (String warnMsg ) {
243
- LOG .warn ("[Warning] " + warnMsg );
243
+ LOG .warn (warnMsg );
244
244
}
245
245
246
246
/* Tokenize the string using the separator. */
Original file line number Diff line number Diff line change @@ -800,12 +800,13 @@ public static ParameterHolder handleParameters(
800
800
public boolean hasNext () {
801
801
if (index == 0 && !parameters .hasNext () && !hasWarn ) {
802
802
hasWarn = true ;
803
- Utils .log (
804
- "" ,
805
- 2 ,
806
- "Warning: the data provider '"
807
- + dataProviderMethod .getName ()
808
- + "' returned an empty array or iterator, so this test is not doing anything" );
803
+ String msg =
804
+ String .format (
805
+ "The test method '%s' will be skipped since its "
806
+ + "data provider '%s' "
807
+ + "returned an empty array or iterator. " ,
808
+ testMethod .getQualifiedName (), dataProviderMethod .getName ());
809
+ Utils .warn (msg );
809
810
}
810
811
return parameters .hasNext ();
811
812
}
You can’t perform that action at this time.
0 commit comments