feature request: subunit2junitxml

Bug #407181 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subunit
Fix Released
Wishlist
Unassigned

Bug Description

Junit has an xml format used for running java stuff in a subprocess.
Folk using subunit in a hudson environment would benefit by being able
to coerce a stream to that format (and necessarily divert passthrough
content to stderr or something similar).

 affects subunit
 importance wishlist
 status triaged

--

Related branches

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 407181] [NEW] feature request: subunit2junitxml

Further details - it looks like hudson wants xml files on disk, not a
stream. This is fine.

We could use - or perhaps consider for inspiration -
http://www.rittau.org/python/cruisecontrol/ - the python there is
awkward, but the actual xml formatting considerations are probably the
important bits (maybe 1/5th of the file).

http://nosexunit.sourceforge.net/ also has support for xml, but is a
massive plugin, not a simple 'get xml shit going' component, I doubt
that it would be desirable as a dependency.

-Rob

Revision history for this message
Robert Collins (lifeless) wrote :

On Fri, 2009-07-31 at 00:49 +0000, Robert Collins wrote:
> Further details - it looks like hudson wants xml files on disk, not a
> stream. This is fine.
>
> We could use - or perhaps consider for inspiration -
> http://www.rittau.org/python/cruisecontrol/ - the python there is
> awkward, but the actual xml formatting considerations are probably the
> important bits (maybe 1/5th of the file).
>
> http://nosexunit.sourceforge.net/ also has support for xml, but is a
> massive plugin, not a simple 'get xml shit going' component, I doubt
> that it would be desirable as a dependency.

Neither of these were particularly up to date or trivially reusable.
I've written a new minimal TestResult object which can be easily reused.
That is at https://launchpad.net/pyjunitxml, and there is a new branch
of subunit up at lp:~lifeless/subunit/subunit2junitxml which uses this
to do junit xml conversions.

Hudson integration will want to pipe the output of subunit2junitxml to a
file on disk.

 status fixcommitted

-Rob

Changed in subunit:
status: Triaged → Fix Committed
Changed in subunit:
status: Fix Committed → Fix Released
milestone: none → 0.0.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.