Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    PyJUnitXML 0.5

    Download button

    No screenshots available
    Downloads: 327  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Robert Collins | More programs
    LGPL v3 / FREE
    December 14th, 2009, 02:55 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    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.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    pyunit extension | XML reporter | Python library | JUnit | XML | reporter

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM