PyJUnitXML

Python JUnit XML reporter
Download

PyJUnitXML Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL v3
  • Price:
  • FREE
  • Publisher Name:
  • Robert Collins
  • Publisher web site:
  • http://bazaar.canonical.com

PyJUnitXML Tags


PyJUnitXML Description

Python JUnit XML reporter 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. Requirements: · Python


PyJUnitXML Related Software