PyDocs

Nav

Development Tools

TestSuite

  • TestSuite(tests=())
A test suite is a composite test consisting of a number of TestCases.

For use, create an instance of TestSuite, then add test case instances.
When all tests have been added, the suite can be passed to a test
runner, such as TextTestRunner. It will run the individual test cases
in the order in which they were added, aggregating the results. When
subclassing, do not forget to call the base class constructor.
Members of TestSuite

_

__iter__
Tests grouped by a TestSuite are always accessed by iteration.

a

addTest
Add a TestCase or TestSuite to the suite.
addTests
Add all the tests from an iterable of TestCase and TestSuite instances to this test suite.

c

countTestCases
Return the number of tests represented by this test object, including all individual tests and sub-suites.

d

debug
Run the tests without collecting errors in a TestResult

r

run
Run the tests associated with this suite, collecting the result into the test result object passed as result.
0 Examples
No examples for unittest/TestSuite.
See Also
No see-alsos for unittest/TestSuite
0 Notes
No notes for TestSuite