Obtaining JUnit-compatible XML from SimpleTest

SimpleTest is a nice testing framework for testing PHP-based applications at the unit and functional level. However, I (and others) have had trouble getting JUnit-compatible XML output for use in continuous integration servers like Jenkins.

SimpleTest provides a built-in XML-based output, but it seems to be mostly for internal communication by SimpleTest itself. It's not JUnit compatible.

To convert SimpleTest output into JUnit-compatible XML, I've seen at least a few posts :

Running Selenium PHPUnit tests against Firefox in an Ubuntu virtual machine

As part of my Hudson CI server, I'm trying to run Selenium-based PHPUnit tests with each build. The build machine is an virtual machine (VirtualBox) running Ubuntu desktop.

Initially, my tests weren't running thru Hudson and the associated build.xml file. This wasn't surprising since I had forgotten to start the Selenium RC server.

Installing Hudson, Phing, PHPUnit and Git on Ubuntu

In this post, I'm just trying to get the simplest setup. I'll try to post details in a subsequent post.

Here are three posts, in descending order, on this that I found useful :

First, I had to install java :

    $ sudo aptitude install sun-java6-jre  
Subscribe to RSS - Jenkins