2.1.10.1.2. xmlrunner.XmlTestRunner

class xmlrunner.XmlTestRunner(stream=None)

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.

__init__(stream=None)

Methods

__init__([stream])
run(test) Run the given test case or test suite.

Attributes

path The path where the XML files are stored.

/

Related Topics