Package buildbot :: Module interfaces :: Class ITestResult
[frames] | no frames]

Class ITestResult

source code

zope.interface.Interface --+
                           |
                          ITestResult

I describe the results of a single unit test.

Instance Methods
 
getName()
Returns a tuple of strings which make up the test name.
source code
 
getResults()
Returns a constant describing the results of the test: SUCCESS, WARNINGS, FAILURE.
source code
 
getText()
Returns a list of short strings which describe the results of the test in slightly more detail.
source code
 
getLogs()
Returns a dictionary of test logs.
source code
Class Variables
  __bases__ = (<InterfaceClass zope.interface.Interface>)
  __identifier__ = 'buildbot.interfaces.ITestResult'
  __iro__ = (<InterfaceClass buildbot.interfaces.ITestResult>, <...
  __name__ = 'ITestResult'
  __sro__ = (<InterfaceClass buildbot.interfaces.ITestResult>, <...
  dependents = <WeakKeyDictionary at 43409280>
Method Details

getName()

source code 

Returns a tuple of strings which make up the test name. Tests may be arranged in a hierarchy, so looking for common prefixes may be useful.

getText()

source code 

Returns a list of short strings which describe the results of the test in slightly more detail. Suggested components include 'failure', 'error', 'passed', 'timeout'.

getLogs()

source code 

Returns a dictionary of test logs. The keys are strings like 'stdout', 'log', 'exceptions'. The values are strings.


Class Variable Details

__iro__

Value:
(<InterfaceClass buildbot.interfaces.ITestResult>,
 <InterfaceClass zope.interface.Interface>)

__sro__

Value:
(<InterfaceClass buildbot.interfaces.ITestResult>,
 <InterfaceClass zope.interface.Interface>)