Package rosunit :: Module xmlrunner :: Class XMLTestRunner
[frames] | no frames]

Class XMLTestRunner

source code

object --+
         |
        XMLTestRunner

A test runner that stores results in XML format compatible with JUnit.

XMLTestRunner(stream=None) -> XML test runner

The XML file is written to the supplied stream. If stream is None, the results are stored in a file called TEST-<module>.<class>.xml in the current working directory (if not overridden with the path property), where <module> and <class> are the module and class name of the test class.

Instance Methods
 
__init__(self, stream=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
run(self, test)
Run the given test case or test suite.
source code

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

Properties
  path
The path where the XML files are stored.

Inherited from object: __class__

Method Details

__init__(self, stream=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

Property Details

path

The path where the XML files are stored.

This property is ignored when the XML file is written to a file stream.

Get Method:
unreachable(self)
Set Method:
_set_path(self, path)