collective.xmltestreport

A test runner which can output an XML report compatible with JUnit and Hudson
Download

collective.xmltestreport Ranking & Summary

Advertisement

  • Rating:
  • License:
  • ZPL
  • Publisher Name:
  • Martin Aspeli

collective.xmltestreport Tags


collective.xmltestreport Description

A test runner which can output an XML report compatible with JUnit and Hudson collective.xmltestreport is a Python module that provides an extension to the test runner to the one that ships with zope.testrunner, as well as a buildout recipe based on zc.recipe.testrunner to install a test script for this test runner.The test runner is identical to the one in zope.testrunner, but it is capable of writing test reports in the XML format output by JUnit/Ant. This allows the test results to be analysed by tools such as the Hudson continuous integration server.Usage:In your buildout, add a part like this:parts = ... test...recipe = collective.xmltestreporteggs = my.packagedefaults = The recipe accepts the same options as zc.recipe.testrunner, so look at its documentation for details.When buildout is run, you should have a script in bin/test and a directory parts/test.To run the tests, use the bin/test script. If you pass the --xml option, test reports will be written to parts/test/reports directory:bin/test --xml -s my.packageUse bin/test --help for a full list of options.If you are using Hudson, you can now configure the build to publish JUnit test reports for < buildoutdir >/parts/test/testreports/*.xml. Requirements: · Python What's New in This Release: · Fixed IndexError in formatter which could occur when the path of the current working directory was part of the path + file name of the doctest file but shorter.


collective.xmltestreport Related Software