Quality Assurance in EZPDO

EZPDO is test-driven

We take pride in the fact that EZPDO has been a test-driven project from day one. We use Simpletest to facilitate our testing.

Hats off to the folks at lastcraft.com and those who have contributed to that project!

Also because of the test suites we have, we can do Continous Integration. Find more in version control.

Kick off the tests

Before testing

Database setup

If you don’t want to change the orm tags in the classes in the test directory, for the tests to run, you need to set up a database ‘ezpdo’ and a user ‘ezpdo’ (with password ‘pdoiseasy’). Make sure the database is accessible to the user.

If you want to change the database/username, make sure you change the orm tags in classes and config files accordingly.

Directory setup

Make sure you have run the setup script to make output directories for tests writable before you run any tests.

cd /path/to/ezpdo/install ./scripts/setup

From browser

Point your browser to tests directory under your EZPDO install path. It should automatically kick off all the test cases. Click here to see testing in action. Allow ~30 seconds1) for it to complete.

From command line

You can simply go to the testing directory

cd /path/to/ezpdo/install
cd tests

and type

php index.php

Report problems

Please use the bug tracking system2) to report any problems you observe and cannot resolve. Along with the problem report, please provide information about your operation system, phpinfo() and the list of installed PEAR packages3). Thank you.

1) Time to complete on your machine may vary depending on the speed of your system. Mine is Fedora 2 on a 2.6GHz Celeron chip. Since we keep adding more tests, don’t be surprised if it takes longer.
2) We use the FlySpray bug tracking system. It is an all-PHP BTS that’s small and really easy to install and admin. A wondeful contribution to the community by Tony Collins. Thank you, Tony!
3) Use command on a *nix machine

pear list > pear.packages.txt

or type in command line on Windows systems

pear.bat list > pear.packages.txt

.

2 user comments

  1. EZPDO » Blog Archive » EZPDO in the last week on March 19th, 2005:

    […] We have also received many constructive suggestions and some helpful bug reports. With the testing and continuous integration framework we have for EZPDO, we have been able to resolve some of the issues qu […]

  2. EZPDO: An O/R Mapping and Persistence Solution for PHP5 on April 28th, 2005:

    […] tion a snap - you simply download, unzip, and you are good to go. The tutorial example and tests should run right out of the box. We have worked out a general solution to tackle the database portability i […]

Post your comments

XHTML: tags you can use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Couldn't find your convert utility. Check that you have ImageMagick installed.