phpundercontrol/phpUnderControl — pull request #8 by LukeCarrier (2012-01-12 13:13:47+00:00)
Title: Add SimpleTest support

This perhaps isn't the prettiest implementation possible, but this commit incorporates an updated version of the patch suggested here:

http://demo.codesetter.com/phpundercontrol-drupal-6-n-7

To configure it, write a test harness that uses the `XmlReporter` class; something along the lines of:
```
run($reporter);
```

Now edit CruiseControl's `config.xml` so that the `test-result.xml` file gets merged into the resulting build log. We need to do this so that the log can be parsed to generate the SimpleTest page for each build:
```

```

Finally, add a target to your `build.xml`, and call it from the the target CruiseControl is calling:
```

```

I need to work on displaying failed tests, though I'm not particularly knowledgeable about XSLT, so this may take me a few days. For a quick overview, this code should work fine, however.