PyDocs

Nav

Development Tools

TestLoader

This class is responsible for loading tests according to various criteria
and returning them wrapped in a TestSuite
Members of TestLoader

d

discover
Find and return all test modules from the specified start directory, recursing into subdirectories to find them and return all tests found within them.

e

errors
A list of the non-fatal errors encountered while loading tests.

g

getTestCaseNames
Return a sorted sequence of method names found within testCaseClass

l

loadTestsFromModule
Return a suite of all test cases contained in the given module
loadTestsFromName
Return a suite of all test cases given a string specifier.
loadTestsFromNames
Return a suite of all test cases found using the given sequence of string specifiers.
loadTestsFromTestCase
Return a suite of all test cases contained in testCaseClass

s

sortTestMethodsUsing
Return -1 if x < y, 0 if x == y and 1 if x > y
suiteClass
A test suite is a composite test consisting of a number of TestCases.

t

testMethodPrefix
String giving the prefix of method names which will be interpreted as test methods.
testNamePatterns
List of Unix shell-style wildcard test name patterns that test methods have to match to be included in test suites (see -k option).
0 Examples
No examples for unittest/TestLoader.
See Also
No see-alsos for unittest/TestLoader
0 Notes
No notes for TestLoader