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.
pear list > pear.packages.txt
or type in command line on Windows systems
pear.bat list > pear.packages.txt
.