protected void printFooter(TestResult result) { if (result.wasSuccessful()) { getWriter().println(); getWriter().print("OK"); getWriter().println(" (" + result.runCount() + " test" + (result.runCount() == 1 ? "" : "s") + ")"); } else { getWriter().println(); getWriter().println("FAILURES!!!"); getWriter().println("Tests run: " + result.runCount() + ", Failures: " + result.failureCount() + ", Errors: " + result.errorCount()); } getWriter().println(); }
protected void printFooter(TestResult result) { if (result.wasSuccessful()) { getWriter().println(); getWriter().print("OK"); getWriter().println(" (" + result.runCount() + " test" + (result.runCount() == 1 ? "" : "s") + ")"); } else { getWriter().println(); getWriter().println("FAILURES!!!"); getWriter().println("Tests run: " + result.runCount() + ", Failures: " + result.failureCount() + ", Errors: " + result.errorCount()); } getWriter().println(); }
protected void printFooter(TestResult result) { if (result.wasSuccessful()) { getWriter().println("OK (" + result.runCount() + " tests)" + " Time: " + elapsedTimeAsString(runTime)); } else { getWriter().println("Time: " + elapsedTimeAsString(runTime)); super.printFooter(result); } } }
final int runCount = result.runCount(); final int failureCount = result.failureCount(); final int errorCount = result.errorCount();
protected void printFooter(TestResult result) { if (result.wasSuccessful()) { getWriter().println(); getWriter().print("OK"); getWriter().println(" (" + result.runCount() + " test" + (result.runCount() == 1 ? "" : "s") + ")"); } else { getWriter().println(); getWriter().println("FAILURES!!!"); getWriter().println("Tests run: " + result.runCount() + ", Failures: " + result.failureCount() + ", Errors: " + result.errorCount()); } getWriter().println(); }
public synchronized int runCount() { return orig.runCount(); }
/*************************************************************************** * TestListener.startTest() - will print '.' to te System.out. * * @param test * The test that started */ public synchronized void startTest(Test test) { System.out.println(); System.out.print(this.aResult.runCount() + " start (" + test.getClass().getName() + ")"); }
protected void printFooter(TestResult result) { if (result.wasSuccessful()) { getWriter().println(); getWriter().print("OK"); getWriter().println (" (" + result.runCount() + " test" + (result.runCount() == 1 ? "": "s") + ")"); } else { getWriter().println(); getWriter().println("FAILURES!!!"); getWriter().println("Tests run: "+result.runCount()+ ", Failures: "+result.failureCount()+ ", Errors: "+result.errorCount()); } getWriter().println(); }
protected void printFooter(TestResult result) { if (result.wasSuccessful()) { getWriter().println(); getWriter().print("OK"); getWriter().println(" (" + result.runCount() + " test" + (result.runCount() == 1 ? "" : "s") + ")"); } else { getWriter().println(); getWriter().println("FAILURES!!!"); getWriter().println("Tests run: " + result.runCount() + ", Failures: " + result.failureCount() + ", Errors: " + result.errorCount()); } getWriter().println(); }
protected void printFooter(TestResult result) { if (result.wasSuccessful()) { getWriter().println(); getWriter().print("OK"); getWriter().println(" (" + result.runCount() + " test" + (result.runCount() == 1 ? "" : "s") + ")"); } else { getWriter().println(); getWriter().println("FAILURES!!!"); getWriter().println("Tests run: " + result.runCount() + ", Failures: " + result.failureCount() + ", Errors: " + result.errorCount()); } getWriter().println(); }
protected void printFooter(TestResult result) { if (result.wasSuccessful()) { getWriter().println(); getWriter().print("OK"); getWriter().println (" (" + result.runCount() + " test" + (result.runCount() == 1 ? "": "s") + ")"); } else { getWriter().println(); getWriter().println("FAILURES!!!"); getWriter().println("Tests run: "+result.runCount()+ ", Failures: "+result.failureCount()+ ", Errors: "+result.errorCount()); } getWriter().println(); }
public void testEnded(String testName) { setLabelValue(fNumberOfRuns, fTestResult.runCount()); synchronized(this) { fProgressIndicator.step(fTestResult.wasSuccessful()); } }
protected void displayHeader( PrintWriter writer, String testClassName, TestResult testResult, String elapsedTimeString ) { displayHeader( writer, testClassName, getFormatted( testResult.runCount(), "test" ), elapsedTimeString, testResult.wasSuccessful() ? "OK" : "Problems Occurred" ); }
protected void displayHeader( PrintWriter writer, String testClassName, TestResult testResult, String elapsedTimeString ) { displayHeader( writer, testClassName, getFormatted( testResult.runCount(), "test" ), elapsedTimeString, testResult.wasSuccessful() ? "OK" : "Problems Occurred" ); }
protected void displayHeader( PrintWriter writer, String testClassName, TestResult testResult, String elapsedTimeString ) { displayHeader( writer, testClassName, getFormatted( testResult.runCount(), "test" ), elapsedTimeString, testResult.wasSuccessful() ? "OK" : "Problems Occurred" ); }
protected void displayHeader( PrintWriter writer, String testClassName, TestResult testResult, String elapsedTimeString ) { writer.println( "<?xml version='1.0' encoding='UTF-8' ?>\n" + "<testsuite name=" + asAttribute( testClassName ) + " tests=" + asAttribute( testResult.runCount() ) + " failures=" + asAttribute( testResult.failureCount() ) + " errors=" + asAttribute( testResult.errorCount() ) + " time=" + asAttribute( elapsedTimeString ) + ">" ); }
protected void displayHeader( PrintWriter writer, String testClassName, TestResult testResult, String elapsedTimeString ) { writer.println( "<?xml version='1.0' encoding='UTF-8' ?>\n" + "<testsuite name=" + asAttribute( testClassName ) + " tests=" + asAttribute( testResult.runCount() ) + " failures=" + asAttribute( testResult.failureCount() ) + " errors=" + asAttribute( testResult.errorCount() ) + " time=" + asAttribute( elapsedTimeString ) + ">" ); }
protected void displayHeader( PrintWriter writer, String testClassName, TestResult testResult, String elapsedTimeString ) { writer.println( "<?xml version='1.0' encoding='UTF-8' ?>\n" + "<testsuite name=" + asAttribute( testClassName ) + " tests=" + asAttribute( testResult.runCount() ) + " failures=" + asAttribute( testResult.failureCount() ) + " errors=" + asAttribute( testResult.errorCount() ) + " time=" + asAttribute( elapsedTimeString ) + ">" ); }
private void logTestSuiteResults(TestSuite suite, TestResult results) { Debug.logInfo("[JUNIT] Results for test suite: " + suite.getName(), module); Debug.logInfo("[JUNIT] Pass: " + results.wasSuccessful() + " | # Tests: " + results.runCount() + " | # Failed: " + results.failureCount() + " # Errors: " + results.errorCount(), module); if (Debug.importantOn() && !results.wasSuccessful()) { Debug.logInfo("[JUNIT] ----------------------------- ERRORS ----------------------------- [JUNIT]", module); logErrorsOrFailures(results.errors()); Debug.logInfo("[JUNIT] ------------------------------------------------------------------ [JUNIT]", module); Debug.logInfo("[JUNIT] ---------------------------- FAILURES ---------------------------- [JUNIT]", module); logErrorsOrFailures(results.failures()); Debug.logInfo("[JUNIT] ------------------------------------------------------------------ [JUNIT]", module); } }