Module unittest :: Class TestProgram
[hide private]
[frames] | no frames]

type TestProgram

object --+
         |
        TestProgram

A command-line program that runs a set of tests; this is primarily for making test modules conveniently executable.

Instance Methods [hide private]
 
__init__(self, module='__main__', defaultTest=None, argv=None, testRunner=None, testLoader=TestLoader())
 
usageExit(self, msg=None)
 
parseArgs(self, argv)
 
createTests(self)
 
runTests(self)
Class Variables [hide private]
  USAGE = 'Usage: %(progName)s [options] [test] [...]\n\nOptions...
Method Details [hide private]

__init__(self, module='__main__', defaultTest=None, argv=None, testRunner=None, testLoader=TestLoader())
(Constructor)

 
Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

USAGE

Value:
'''Usage: %(progName)s [options] [test] [...]

Options:
  -h, --help       Show this message
  -v, --verbose    Verbose output
  -q, --quiet      Minimal output

Examples:
...