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

Class SubunitLogObserver

source code

 buildstep.LogObserver --+    
                         |    
 buildstep.LogLineObserver --+
                             |
                object --+   |
                         |   |
unittest.result.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 help(type(x)) for signature
source code
 
outLineReceived(self, line)
Process a received stdout line.
source code
 
errLineReceived(self, line)
same for stderr line.
source code
 
stopTest(self, test)
Called when the given test has been run
source code
 
addSuccess(self, test)
Called when a test has completed successfully
source code
 
addSkip(self, test, detail)
Called when a test is skipped.
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
 
addAResult(self, test, result, text, log='') source code
 
issue(self, test, err)
An issue - failing, erroring etc test.
source code
 
progress(self, offset, whence) 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__, __provides__, logChunk, setLog, setStep

Inherited from unittest.result.TestResult: __repr__, addExpectedFailure, addUnexpectedSuccess, printErrors, startTest, startTestRun, stop, stopTestRun, wasSuccessful

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

Class Variables
  expectedTests = 0
  contextLevel = 0

Inherited from buildstep.LogObserver: __implemented__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) 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

stopTest(self, test)

source code 

Called when the given test has been run

Overrides: unittest.result.TestResult.stopTest
(inherited documentation)

addSuccess(self, test)

source code 

Called when a test has completed successfully

Overrides: unittest.result.TestResult.addSuccess
(inherited documentation)

addSkip(self, test, detail)

source code 

Called when a test is skipped.

Overrides: unittest.result.TestResult.addSkip
(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.result.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.result.TestResult.addFailure
(inherited documentation)