absl.testing.xml_reporter module
A Python test reporter that generates test reports in JUnit XML format.
- class absl.testing.xml_reporter.TextAndXMLTestRunner(xml_stream=None, *args, **kwargs)[source]
Bases:
TextTestRunnerA test runner that produces both formatted text results and XML.
It prints out the names of tests as they are run, errors as they occur, and a summary of the results at the end of the test run.
- classmethod set_default_xml_stream(xml_stream)[source]
Sets the default XML stream for the class.
- Parameters:
xml_stream – file-like or None; used for instances when xml_stream is None or not passed to their constructors. If None is passed, instances created with xml_stream=None will act as ordinary TextTestRunner instances; this is the default state before any calls to this method have been made.