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 :

SimpleTest vs. PHPUnit for PHP-based testing

Over the year's I've kind of gone back and forth on SimpleTest, a PHP-based unit test framework.

A few years ago, when PHPUnit was in its infancy, SimpleTest was the best PHP-based unit test framework. In the past few years, however, it seems like PHPUnit has been improved continually, while SimpleTest has languished somewhat.

Currently, I believe PHPUnit is the best choice for true "unit" ("micro") testing, while SimpleTest seems to be better for modest functional (integration) testing.

Web front-end test frameworks or test methods

A while back I spent some time evaluating unit test frameworks from front-end web testing. A key driver is the need to handle JavaScript forms.

Here are some thoughts on those test frameworks :

- PHPUnit : Good for back-end work, but weak with front-end (browser) work

- SimpleTest : Same as PHPUnit

- Watir : Very mature and popular browser test app, but requires knowledge of Ruby scripting language

- IeUnit : Not quite as popular as Watir, but mature IE test framework. Scriptable in JavaScript

Subscribe to RSS - SimpleTest