| Home | Trees | Index | Help |
|---|
| Package qm :: Package test :: Module result_stream :: Class ResultStream |
|
object--+ |Extension--+ | ResultStream
FileResultStream,
SQLResultStreamA 'ResultStream' displays test results.
A 'ResultStream' is responsible for displaying test results for the user as they arrive. It may also display summary information when the results are complete. The 'ResultStream' may also choose to write the results to a file for permanent storage.
'ResultStream' is an abstract class.| Method Summary | |
|---|---|
Construct a new 'Extension'. | |
Output summary information about the results. | |
Output all annotations in 'annotations' to this stream. | |
Output an annotation for this run. | |
Output a test result. | |
| Inherited from Extension | |
| |
Return the name of the extension class. | |
Return the arguments to this extension instance. | |
Create a DOM document for 'self'. | |
Create a DOM node for 'self'. | |
Write an XML description of 'self' to a file. | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Class Variable Summary | |
|---|---|
NoneType |
expected_outcomes = None |
str |
kind = 'result_stream'
|
| Inherited from Extension | |
list |
arguments = []
|
| Method Details |
|---|
__init__(self,
arguments=None,
**args)
|
Summarize(self)Output summary information about the results. When this method is called, the test run is complete. Summary information should be displayed for the user, if appropriate. Any finalization, such as the closing of open files, should also be performed at this point. Derived class methods may override this method. They should, however, invoke this version before returning. |
WriteAllAnnotations(self, annotations)Output all annotations in 'annotations' to this stream. Currently this is the same as making repeated calls to 'WriteAnnotation', but in the future, as special annotation types like timestamps are added, this will do the work of dispatching to functions like 'WriteTimestamp'. Should not be overridden by subclasses. |
WriteAnnotation(self, key, value)Output an annotation for this run. Subclasses should override this if they want to store/display annotations; the default implementation simply discards them. 'key' -- the key value as a string. 'value' -- the value of this annotation as a string. |
WriteResult(self, result)Output a test result. Subclasses must override this method; the default implementation raises a 'NotImplementedError'. 'result' -- A 'Result'. |
| Class Variable Details |
|---|
expected_outcomes
|
kind
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Sep 27 15:49:05 2007 | http://epydoc.sf.net |