Package gavo :: Package rscdef :: Module regtest :: Class TestStatistics
[frames] | no frames]

Class TestStatistics

source code

object --+
         |
        TestStatistics

A statistics gatherer/reporter for the regression tests.

Instance Methods
 
__init__(self, verbose=True)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
add(self, status, runTime, title, payload, srcRD)
adds a test result to the statistics.
source code
 
getReport(self)
returns a string representation of a short report on how the tests fared.
source code
 
getFailures(self)
returns a string containing some moderately verbose info on the failures collected.
source code
 
save(self, target)
saves the entire test statistics to target.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, verbose=True)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

add(self, status, runTime, title, payload, srcRD)

source code 

adds a test result to the statistics.

status is either OK, FAIL, or ERROR, runTime is the time spent in running the test, title is the test's title, and payload is "something" associated with failures that should help diagnosing them.

save(self, target)

source code 

saves the entire test statistics to target.

This is a pickle of basically what's added with add. No tools for doing something with this are provided so far.