Package buildbot :: Package process :: Module subunitlogobserver :: Class SubunitLogObserver
[frames] | no frames]

Class SubunitLogObserver

source code

buildstep.LogObserver --+    
                        |    
buildstep.LogLineObserver --+
                            |
               object --+   |
                        |   |
      unittest.TestResult --+
                            |
                           SubunitLogObserver

Observe a log that may contain subunit output.

This class extends TestResult to receive the callbacks from the subunit parser in the most direct fashion.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
outLineReceived(self, line)
Process a received stdout line.
source code
 
errLineReceived(self, line)
same for stderr line.
source code
 
startTest(self, test)
Called when the given test is about to be run
source code
 
addSkip(self, test, detail) source code
 
addError(self, test, err)
Called when an error has occurred.
source code
 
addFailure(self, test, err)
Called when an error has occurred.
source code
 
issue(self)
An issue - failing, erroring etc test.
source code
 
tags(self, new_tags, gone_tags)
Accumulate the seen tags.
source code

Inherited from buildstep.LogLineObserver: errReceived, outReceived, setMaxLineLength

Inherited from buildstep.LogObserver: __providedBy__, logChunk, setLog, setStep

Inherited from unittest.TestResult: __repr__, addSuccess, stop, stopTest, wasSuccessful

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

Class Variables

Inherited from buildstep.LogObserver: __implemented__, __provides__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

outLineReceived(self, line)

source code 

Process a received stdout line.

Overrides: buildstep.LogLineObserver.outLineReceived

errLineReceived(self, line)

source code 

same for stderr line.

Overrides: buildstep.LogLineObserver.errLineReceived

startTest(self, test)

source code 

Called when the given test is about to be run

Overrides: unittest.TestResult.startTest
(inherited documentation)

addError(self, test, err)

source code 

Called when an error has occurred. 'err' is a tuple of values as returned by sys.exc_info().

Overrides: unittest.TestResult.addError
(inherited documentation)

addFailure(self, test, err)

source code 

Called when an error has occurred. 'err' is a tuple of values as returned by sys.exc_info().

Overrides: unittest.TestResult.addFailure
(inherited documentation)