Lines Matching refs:test

24     """Information about a particular test.
30 def __init__(self, test, time):
31 (self._class, self._method) = test.id().rsplit(".", 1)
37 def create_success(test, time):
38 """Create a _TestInfo instance for a successful test."""
39 return _TestInfo(test, time)
42 def create_failure(test, time, failure):
43 """Create a _TestInfo instance for a failed test."""
44 info = _TestInfo(test, time)
49 def create_error(test, time, error):
50 """Create a _TestInfo instance for an erroneous test."""
51 info = _TestInfo(test, time)
56 """Print information about this test case in XML format to the
87 """A test result class that stores result as XML.
101 def startTest(self, test):
102 unittest.TestResult.startTest(self, test)
107 def stopTest(self, test):
109 unittest.TestResult.stopTest(self, test)
111 info = _TestInfo.create_error(test, time_taken, self._error)
113 info = _TestInfo.create_failure(test, time_taken, self._failure)
115 info = _TestInfo.create_success(test, time_taken)
118 def addError(self, test, err):
119 unittest.TestResult.addError(self, test, err)
122 def addFailure(self, test, err):
123 unittest.TestResult.addFailure(self, test, err)
150 """A test runner that stores results in XML format compatible with JUnit.
152 XMLTestRunner(stream=None) -> XML test runner
157 where <module> and <class> are the module and class name of the test class.
165 def run(self, test):
166 """Run the given test case or test suite."""
167 class_ = test.__class__
186 test(result)
222 """Run the test suite against the supplied test class and compare the
245 """Regression test: Check whether a test run without any tests
258 """Regression test: Check whether a test run with a successful test
273 """Regression test: Check whether a test run with a failing test
290 """Regression test: Check whether a test run with a erroneous test
307 """Regression test: Check whether a test run with output to stdout
323 """Regression test: Check whether a test run with output to stderr