mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
testng: mark test as success but print corresponding throwable if test fail within accepted percentage (IDEA-140261)
This commit is contained in:
@@ -79,7 +79,13 @@ public class IDEATestNGRemoteListener implements ISuiteListener, IResultListener
|
||||
myPrintStream.println("\n##teamcity[testIgnored name=\'" + escapeName(getTestMethodNameWithParams(result)) + "\']");
|
||||
}
|
||||
|
||||
public synchronized void onTestFailedButWithinSuccessPercentage(ITestResult result) {}
|
||||
public synchronized void onTestFailedButWithinSuccessPercentage(ITestResult result) {
|
||||
final Throwable throwable = result.getThrowable();
|
||||
if (throwable != null) {
|
||||
throwable.printStackTrace();
|
||||
}
|
||||
onTestSuccess(result);
|
||||
}
|
||||
|
||||
public synchronized void onStart(ITestContext context) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user