16 from .stats
import TotalStat
17 from .visitor
import SuiteVisitor
25 test_or_task =
'Tests' if not rpa
else 'Tasks'
32 visitor.visit_total_statistics(self)
48 test_or_task =
'test' if not self.
_rpa_rpa
else 'task'
50 atotal, aend, apass, afail = self.
_get_counts_get_counts(self.
allall)
51 return (
'%d critical %s%s, %d passed, %d failed\n'
52 '%d %s%s total, %d passed, %d failed'
53 % (ctotal, test_or_task, cend, cpass, cfail,
54 atotal, test_or_task, aend, apass, afail))
57 ending =
's' if stat.total != 1
else ''
58 return stat.total, ending, stat.passed, stat.failed
69 self.
statsstats.all.add_test(test)
71 self.
statsstats.critical.add_test(test)
Stores statistic values for a test run.
def visit_keyword(self, kw)
Implements traversing through the keyword and its child keywords.
def visit_test(self, test)
Implements traversing through the test and its keywords.
def __init__(self, suite=None, rpa=False)
Container for total statistics.
def _get_counts(self, stat)
message
String representation of the statistics.
def __init__(self, rpa=False)
Interface to ease traversing through a test suite structure.