Web GUI: New Testcase Runners For PHPUnit From Sebastian Bergmann

11 11 2007

A few days ago I uploaded a webbased GUI for PHPUnit from Sebastian Bergmann to sourceforge. as part of the Cool project. I use it myself very intensively and it could be very useful for others as well. But oh, the download statistic is pretty bad. Time to blog about it and some other pulsating evolutions.

The cool address is http://cool.sf.net.

PHPUnit is the standard for unit testing with PHP. It runs pretty well on command line as well as in continous integration environments. The documentation from Sebastian Bergman is excellent and freely available. But pretty GUIs for it are still rare.

The address of PHPUnit: http://phpunit.de

Robert Lemke did a first approach to bring up a GUI as a T3 extension, with some interesting concepts. But it was still a little difficult to work with it. Now Kasper Ligaard from Denmark did a big job to improve Roberts extension and the result is very promising.

The extension key is phpunit.

Daniel Brüßler from Germany assisted by improving the PEAR installer extension, so that you can easily update PHPUnit via PEAR channel, as often as a new version has been released.

The extension key is PEAR.

Mario Rimann and Oliver Klee stepped ahead an improved the quality of the Seminar Manager extension by unit testing.

I hope we will see more well tested TYPO3 extensions in future.

To have a nice GUI available also outside the world of TYPO3 I migrated the Ideas of Robert and Kasper to PHPUnit_CoolUI. Another source inspiration is
PHPUnit2 HTML Runner from Dave Spurr (UK). Unfortunately it depends on an older version of PHPUnit, so that I didn’t get it running.


Actions

Information

4 responses

11 11 2007
Mario Rimann

Hi Elmar

Thanks for mentioning our work on the Seminar Manager.

Cheers,
Mario

19 06 2008
Including

Somehow i missed the point. Probably lost in translation :) Anyway … nice blog to visit.

cheers, Including.

6 07 2008
thanix

Sorry, but the PHPUnit-CoolUI doesn’t work with the latest PHPUnit-3.3, there are problems like PHPUnit/Util/Fileloader doesn’t contain getIncludePaths() and the like..

18 09 2008
luz

Just add the class in Fileloader (don’t know why it’s been removed in version 3.3..?):

/**
* Returns the include paths configured via the “include_path”
* PHP INI setting plus the include paths configured via the
* PEAR environment’s “test_dir” configuration setting.
*
* @return array
* @access public
* @static
* @since Method available since Release 3.0.0
*/
public static function getIncludePaths()
{
$includePaths = explode(PATH_SEPARATOR, get_include_path());

@include_once ‘PEAR/Config.php’;

if (class_exists(’PEAR_Config’, FALSE)) {
$config = new PEAR_Config;
$includePaths[] = $config->get(’test_dir’);
}

return $includePaths;
}

Leave a comment