19 from .executionerrors
import ExecutionErrors
20 from .model
import TestSuite
33 def __init__(self, source=None, root_suite=None, errors=None, rpa=None):
80 return_code = property
84 return min(self.
suitesuite.statistics.critical.failed, 250)
97 def configure(self, status_rc=True, suite_config=None, stat_config=None):
110 self.
visitvisit(OutputWriter(path
or self.
sourcesource, rpa=self.
rparpa))
124 visitor.visit_result(self)
133 if other.rpa
is None:
135 elif self.
rparpa
is None:
136 self.
rparpa = other.rpa
137 elif self.
rparpa
is not other.rpa:
138 this, that = (
'task',
'test')
if other.rpa
else (
'test',
'task')
139 raise DataError(
"Conflicting execution modes. File '%s' has %ss "
140 "but files parsed earlier have %ss. Use '--rpa' "
141 "or '--norpa' options to set the execution mode "
142 "explicitly." % (other.source, this, that))
149 Result.__init__(self)
150 for result
in results
or ():
155 self.
suitesuite.suites.append(other.suite)
156 self.
errorserrors.add(other.errors)
Used when variable does not exist.
Container for total, suite and tag statistics.
Represents errors occurred during the execution of tests.
Combined results of multiple test executions.
def add_result(self, other)
def __init__(self, results=None)
statistics
Test execution statistics.
def visit(self, visitor)
An entry point to visit the whole result object.
def handle_suite_teardown_failures(self)
Internal usage only.
def set_execution_mode(self, other)
Set execution mode based on other result.
def save(self, path=None)
Save results as a new output XML file.
def configure(self, status_rc=True, suite_config=None, stat_config=None)
Configures the result object and objects it contains.
def __init__(self, source=None, root_suite=None, errors=None, rpa=None)
return_code
Return code (integer) of test execution.
Represents results of a single test suite.