private void addCountsToResult( TestExecutionReport.TestResult currentResult, TestSummary testSummary) { currentResult.right = Integer.toString(testSummary.getRight()); currentResult.wrong = Integer.toString(testSummary.getWrong()); currentResult.ignores = Integer.toString(testSummary.getIgnores()); currentResult.exceptions = Integer.toString(testSummary.getExceptions()); }
private void evaluateTable(SlimTable table) { try { table.evaluateReturnValues(instructionResults); testSummary.add(table.getTestSummary()); } catch (Throwable e) { exceptions.addException("ABORT", exceptionToString(e)); exceptionOccurred(e); } }
public void acceptResult(PageResult result) throws Exception { TestSummary testSummary = result.testSummary(); pageCounts.tallyPageCounts(testSummary); for (int i = 0; i < testSummary.right; i++) output.print("."); if (testSummary.wrong > 0 || testSummary.exceptions > 0) { output.println(); if (testSummary.wrong > 0) output.println(pageDescription(result) + " has failures"); if (testSummary.exceptions > 0) output.println(pageDescription(result) + " has errors"); } }
private void initializeTest() { symbols.clear(); scenarios.clear(); testSummary.clear(); allExpectations.clear(); allInstructionResults.clear(); allInstructions.clear(); allTables.clear(); exceptions.resetForNewTest(); }