Exemplo n.º 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());
 }
Exemplo n.º 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);
   }
 }
Exemplo n.º 3
0
 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");
   }
 }
Exemplo n.º 4
0
 private void initializeTest() {
   symbols.clear();
   scenarios.clear();
   testSummary.clear();
   allExpectations.clear();
   allInstructionResults.clear();
   allInstructions.clear();
   allTables.clear();
   exceptions.resetForNewTest();
 }