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 line.
source code
 
startTest(self, test)
Called when the given test is about to be run
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

Inherited from buildstep.LogLineObserver: errLineReceived, errReceived, outReceived, setMaxLineLength

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

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

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

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 line.

Overrides: buildstep.LogLineObserver.outLineReceived

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)