XML output option for use with Hudson / JUnit

Steven Merrill - October 12, 2009 - 14:43
Project:SimpleTest
Version:7.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Steven Merrill
Status:reviewed & tested by the community
Description

This patch extends on the work done for http://www.computerminds.co.uk/hudson-and-simpletest and adds an --xml output option for run-tests.sh that works with SimpleTest 6.x-2.9.

AttachmentSize
simpletest-junit-xml-output.patch4.71 KB

#1

joshk - October 14, 2009 - 21:38

+1 for this

This kind of output will easy integration with Hudson and other external test mgmt systems.

I also like that this shows how to do it in a more modular fashion with an extensible pattern.

#2

ezraw - October 16, 2009 - 04:10

Tested this patch tonight and it output xml as expected. Thanks for posting it. I haven't tested it with Hudson yet, but that's next on the list. If you have any helpful tips on doing so, I'd be grateful.

#3

ezraw - October 16, 2009 - 21:23
Status:needs review» reviewed & tested by the community

The XML output works with Hudson for me.

I have about 200 test errors, some from core functionality -- is that normal? Here is the Hudson output: http://drupalbin.com/11879

#4

boombatower - October 17, 2009 - 21:38

This should be done in Drupal 7 core...since it is going into feature freeze not sure what to say. SimpleTest 6.x-2.x is intended to be a backport of 7.

#5

boombatower - October 29, 2009 - 17:51
Version:6.x-2.9» 7.x-2.x-dev

We are continuing feature development, as suggested by chx (checkout recent Drupal Planet activity).

I'll take a look at this later, also I would like to abstract the reporter.

 
 

Drupal is a registered trademark of Dries Buytaert.