Package rosunit :: Module junitxml :: Class Result
[frames] | no frames]

Class Result

source code

object --+
         |
        Result

Instance Methods
 
__init__(self, name, num_errors=0, num_failures=0, num_tests=0)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
accumulate(self, r)
Add results from r to this result
source code
 
add_test_case_result(self, r)
Add results from a testcase to this result container
source code
 
xml_element(self)
Returns: document as unicode (UTF-8 declared) XML according to Ant JUnit spec
source code

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

Properties
  name
  num_errors
  num_failures
  num_tests
  system_err
  system_out
  test_case_results
  time

Inherited from object: __class__

Method Details

__init__(self, name, num_errors=0, num_failures=0, num_tests=0)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

accumulate(self, r)

source code 

Add results from r to this result

Parameters:
  • r (Result) - results to aggregate with this result

add_test_case_result(self, r)

source code 

Add results from a testcase to this result container

Parameters:
  • r (TestCaseResult) - TestCaseResult

xml_element(self)

source code 
Returns:
document as unicode (UTF-8 declared) XML according to Ant JUnit spec