nose-devs/nose — Issue #13: builtin XML formatter plugin: --xml --xml-formatter=mymodule.foo
Author: jpellerin
Created: 2011-12-14 15:54:51+00:00
State: open

Nose should support XML output of test results.

Use cases:

* work with nose output in a standard XML format for analysis
* store test results in a database
* scrape nosetests output like you might scrape svn output
* work with nose output in a custom XML format (without having to rely on
XSLT)
* use nosetests output with continuous integration systems like Bitten,
Bamboo, Cruise Control, etc

Implementation:

A new builtin plugin is needed to allow:

nosetests --xml

...which would generate XML output of test results in accordance with a schema
definition (preferably Relax-NG schema - http://relaxng.org/). Nose
documentation will explain the XML schema.

Additionally, a custom formatter could be used like:

nosetests --xml --xml-formatter=mymodule.formatters.bitten

...where the formatter argument is any python path pointing to a
module providing a class descending from NoseXMLFormatter (or
something). This would make supporting custom XML very easy -- no
fussing with setuptools entry points, even. It would also allow for
separately maintained XML formats to be released as standalone
modules, if the authors felt those would be useful. Nose documentation
will explain how to build a custom formatter -- what hooks can be
implemented, etc.

Initial discussion:
http://groups.google.com/group/nose-users/browse_thread/thread/85749c41c9ea7ec9/bb5d1440121ee729

This should address issue111

Google Code Info:
Issue #: 140
Author: kumar.mcmillan
Created On: 2007-12-02T20:30:52.000Z
Closed On: