mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
sm runner: don't miss line breaks
This commit is contained in:
@@ -46,15 +46,15 @@ class SMTestSender extends RunListener {
|
||||
|
||||
public void testRunStarted(Description description) throws Exception {
|
||||
myCurrentClassName = myIgnoreTopSuite ? description.toString() : null;
|
||||
System.out.println("##teamcity[enteredTheMatrix]");
|
||||
System.out.println("##teamcity[enteredTheMatrix]\n");
|
||||
}
|
||||
|
||||
public void testRunFinished(Result result) throws Exception {
|
||||
if (myParamName != null) {
|
||||
System.out.println("##teamcity[testSuiteFinished name=\'" + myParamName + "\']");
|
||||
System.out.println("##teamcity[testSuiteFinished name=\'" + myParamName + "\']\n");
|
||||
}
|
||||
if (myCurrentClassName != null) {
|
||||
System.out.println("##teamcity[testSuiteFinished name=\'" + myCurrentClassName + "\']");
|
||||
System.out.println("##teamcity[testSuiteFinished name=\'" + myCurrentClassName + "\']\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ class SMTestSender extends RunListener {
|
||||
}
|
||||
|
||||
public void testFinished(Description description) throws Exception {
|
||||
System.out.println("##teamcity[testFinished name=\'" + JUnit4ReflectionUtil.getMethodName(description) + "\']");
|
||||
System.out.println("\n##teamcity[testFinished name=\'" + JUnit4ReflectionUtil.getMethodName(description) + "\']");
|
||||
}
|
||||
|
||||
public void testFailure(Failure failure) throws Exception {
|
||||
|
||||
@@ -82,7 +82,7 @@ public class IDEATestNGRemoteListener implements ISuiteListener, IResultListener
|
||||
}
|
||||
|
||||
public void onTestSuccess(ITestResult result) {
|
||||
System.out.println("##teamcity[testFinished name=\'" + getMethodName(result) + "\']");
|
||||
System.out.println("\n##teamcity[testFinished name=\'" + getMethodName(result) + "\']");
|
||||
}
|
||||
|
||||
public String getTrace(Throwable tr) {
|
||||
@@ -104,11 +104,11 @@ public class IDEATestNGRemoteListener implements ISuiteListener, IResultListener
|
||||
attrs.put("details", trace);
|
||||
attrs.put("error", "true");
|
||||
System.out.println(ServiceMessage.asString(ServiceMessageTypes.TEST_FAILED, attrs));
|
||||
System.out.println("##teamcity[testFinished name=\'" + methodName + "\']");
|
||||
System.out.println("\n##teamcity[testFinished name=\'" + methodName + "\']");
|
||||
}
|
||||
|
||||
public void onTestSkipped(ITestResult result) {
|
||||
System.out.println("##teamcity[testFinished name=\'" + getMethodName(result) + "\']");
|
||||
System.out.println("\n##teamcity[testFinished name=\'" + getMethodName(result) + "\']");
|
||||
}
|
||||
|
||||
public void onTestFailedButWithinSuccessPercentage(ITestResult result) {
|
||||
|
||||
Reference in New Issue
Block a user