Testing eZ code

Author Message

Paul Forsyth

Friday 23 January 2004 3:09:04 am

Im considering how best to test code that I develop. I usually work soley with extensions, build a few libraries in to help me out, with little need of kernel changes except in specific cases.

Has anyone developed unit/integration/regression tests with systems like eZ in PHP before?

I've used apis like JUnit and I find its methodology very potent. One of its variations, PHPUnit, but it only appears to handle PHP scripts and not the client/server interaction needed to test eZ.

I notice PHPUnit now requires PHP 5, doh!

http://pear.php.net/package-info.php?package=PHPUnit

The use of JWebUnit/HttpUnit may be a type of answer as it appears to handle client/server interaction, but for the fact it requires Java unit tests.

http://jwebunit.sourceforge.net/
http://httpunit.sourceforge.net/

What are peoples experience of such testing?

Ideally I'd like to release unit tests for all code I write, both internally and publically on pubsvn.

paul

Paul Forsyth

Friday 30 January 2004 6:09:48 am

Lovely :)

http://pubsvn.ez.no/viewcvs/ezp/trunk/tests/

paul

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.