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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| simpletest-junit-xml-output.patch | 4.71 KB |

#1
+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
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
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
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
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.