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

Class ITestResult

source code

zope.interface.Interface --+
                           |
                          ITestResult

I describe the results of a single unit test.

Instance Methods [hide private]
 
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 [hide private]
  _InterfaceClass__attrs = {'getLogs': <zope.interface.interface...
  __bases__ = (<InterfaceClass zope.interface.Interface>)
  __identifier__ = 'buildbot.interfaces.ITestResult'
  __iro__ = (<InterfaceClass buildbot.interfaces.ITestResult>, <...
  __name__ = 'ITestResult'
  __sro__ = (<InterfaceClass buildbot.interfaces.ITestResult>, <...
  _implied = {<InterfaceClass buildbot.interfaces.ITestResult>: ...
  dependents = <WeakKeyDictionary at 45506288>

Inherited from zope.interface.Interface (private): _Element__tagged_values

Method Details [hide private]

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 [hide private]

_InterfaceClass__attrs

Value:
{'getLogs': <zope.interface.interface.Method object at 0x2b66bd0>,
 'getName': <zope.interface.interface.Method object at 0x2b66c90>,
 'getResults': <zope.interface.interface.Method object at 0x2b66c10>,
 'getText': <zope.interface.interface.Method object at 0x2b66c50>}

__iro__

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

__sro__

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

_implied

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