PyJUnitXML is a Python unittest TestResult that outputs JUnit compatible XML.
Usage:
To use PyJUnitXML you need to specify it as your ``TestResult`` when running your tests using pyunit. One way of doing this is to invoke the ``test`` method directly on your test suite::
>>> import junitxml
>>> result = junitxml.JUnitXmlResult(sys.stdout)
>>> result.startTestRun()
>>> suite.run(result)
>>> result.stopTestRun()
The ``startTestRun`` and ``stopTestRun`` methods are new in python 2.7 and 3.1.
If you are using older versions of python, and do not invoke the test result directly, you may find that no output occurs at all. This is likely because the ``stopTestRun`` method is not being invoked, and you will need to arrange for it to be invoked.
Product's homepage
Requirements:
· Python