telemetry.testing.progress_reporter | index telemetry/testing/progress_reporter.py

`# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.`

Modules
`` |  |

telemetry.testing.options_for_unittests | telemetry.internal.util.path | sys | unittest

Classes
`` |  |

__builtin__.object
  ProgressReporter
  TestRunner
unittest.result.TestResult(__builtin__.object)
  TestResult
unittest.suite.TestSuite(unittest.suite.BaseTestSuite)
  TestSuite

class ProgressReporter(__builtin__.object)
`` |  | Methods defined here:

Error(self, test, err)

Failure(self, test, err)

Skip(self, test, reason)

StartTest(self, test)

StartTestRun(self)

StartTestSuite(self, suite)

StopTest(self, test)

StopTestRun(self, result)

StopTestSuite(self, suite)

Success(self, test)

__init__(self, output_stream)

Data descriptors defined here:

__dict__
  `dictionary for instance variables (if defined)`

__weakref__
  `list of weak references to the object (if defined)`

class TestResult(unittest.result.TestResult)
`` |  |

Method resolution order:
  TestResult
  unittest.result.TestResult
  __builtin__.object

Methods defined here:

__init__(self, progress_reporters)

addError(self, test, err)

addFailure(self, test, err)

addSkip(self, test, reason)

addSuccess(self, test)

startTest(self, test)

startTestRun(self)

startTestSuite(self, suite)

stopTest(self, test)

stopTestRun(self)

stopTestSuite(self, suite)

Data descriptors defined here:

failures_and_errors

Methods inherited from unittest.result.TestResult:

__repr__(self)

addExpectedFailure(self, test, err)
  `Called when an expected failure/error occured.`

addUnexpectedSuccess(self, *args, **kw)
  `Called when a test was expected to fail, but succeed.`

printErrors(self)
  `Called by TestRunner after test run`

stop(self)
  `Indicates that the tests should be aborted`

wasSuccessful(self)
  `Tells whether or not this result was a success`

Data descriptors inherited from unittest.result.TestResult:

__dict__
  `dictionary for instance variables (if defined)`

__weakref__
  `list of weak references to the object (if defined)`

class TestRunner(__builtin__.object)
`` |  | Methods defined here:

run(self, test, progress_reporters, repeat_count, args)

Data descriptors defined here:

__dict__
  `dictionary for instance variables (if defined)`

__weakref__
  `list of weak references to the object (if defined)`

class TestSuite(unittest.suite.TestSuite)
`` | `TestSuite that can delegate start and stop calls to a TestResult object.`

Method resolution order:
  TestSuite
  unittest.suite.TestSuite
  unittest.suite.BaseTestSuite
  __builtin__.object

Methods defined here:

run(self, result)

Methods inherited from unittest.suite.TestSuite:

debug(self)
  `Run the tests without collecting errors in a TestResult`

Methods inherited from unittest.suite.BaseTestSuite:

__call__(self, *args, **kwds)

__eq__(self, other)

__init__(self, tests=())

__iter__(self)

__ne__(self, other)

__repr__(self)

addTest(self, test)

addTests(self, tests)

countTestCases(self)

Data descriptors inherited from unittest.suite.BaseTestSuite:

__dict__
  `dictionary for instance variables (if defined)`

__weakref__
  `list of weak references to the object (if defined)`

Data and other attributes inherited from unittest.suite.BaseTestSuite:

__hash__ = None