Beispiel #1
0
 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());
 }
Beispiel #2
0
 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");
   }
 }
Beispiel #4
0
 private void initializeTest() {
   symbols.clear();
   scenarios.clear();
   testSummary.clear();
   allExpectations.clear();
   allInstructionResults.clear();
   allInstructions.clear();
   allTables.clear();
   exceptions.resetForNewTest();
 }