Package logilab-common-0 :: Package 36 :: Package 1 :: Module pytest :: Class PyTester
[frames] | no frames]

Class PyTester

source code


encaspulates testrun logic

Instance Methods
 
__init__(self, cvg, options)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
show_report(self)
prints the report and returns appropriate exitcode
source code
 
testall(self, exitfirst=False)
walks trhough current working directory, finds something...
source code
 
testonedir(self, testdir, exitfirst=False)
finds each testfile in the `testdir` and runs it
source code
 
testfile(self, filename, batchmode=False)
runs every test in `filename`
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, cvg, options)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

testall(self, exitfirst=False)

source code 
walks trhough current working directory, finds something
which can be considered as a testdir and runs every test there

testfile(self, filename, batchmode=False)

source code 
runs every test in `filename`

:param filename: an absolute path pointing to a unittest file