Module for outputting Junit test results to xml.
Used to support CI/CD and exporting test results for other tools.
This does test report generation without being a test runner.
Object representing a Test Error.
__init__(type: str, msg: str) -> JunitReportError
Object representing a Test Failure.
__init__(type: str, msg: str) -> JunitReportFailure
Init the type of Failure.
Object representing a single test case.
__init__(Name: str, ClassName: str) -> JunitReportTestCase
Init a Test case with it's name and class name.
SetFailed(Msg: str, Type: str) -> None
Sets internal state if the test failed.
SetError(Msg: str, Type: str) -> None
Set internal state if the test had an error.
Set internal state if the test passed.
Set internal state if the test was skipped.
LogStdOut(msg: str) -> None
LogStdError(msg: str) -> None
Output(outstream: IO) -> None
Write the test result to the outstream.
Object representing the overall test suite.
Create new suites by using the JunitTestReport Object
__init__(
Name: str, Package: str, Id: id
) -> JunitReportTestSuite
Initialize a new test suite.
create_new_testcase(
name: str, classname: str
) -> JunitReportTestCase
Create a new test case.
Returns:
Output(outstream: IO) -> None
Output the test results to the stream.
Object representing a Test Report.
Top level object test reporting.
__init__() -> JunitTestReport
Init an empty test report.
create_new_testsuite(
name: str, package: str
) -> JunitReportTestSuite
Create a new test suite.
Returns:
Output(filepath: str) -> None