Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Bug #19211 rework unit tests
Submitted: 2012-01-10 00:32 UTC
From: danielc Assigned:
Status: Open Package: DB_DataObject (version SVN)
PHP Version: 5_4 SVN-2012-01-09 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2012-01-10 00:32 UTC] danielc (Daniel Convissor)
Description: ------------ Hi Alan: The unit tests need to work out of the box, please. 1) Restructure the file layout to be under a directory named "DB". This way calling the unit tests from the package checkout's root directory will work when the tests, or other files, make include calls. 2) The configurations need to be automatic. Right now an .ini file is used. The tests need to set path based settings based on the current directory and pick up auth information via the MYSQL_TEST_* environment variables. See http://svn.php.net/viewvc/pear/packages/Auth_PrefManager/trunk/tests/setup.php?view=markup for an example of using those variables. Thanks.

Comments

 [2012-01-15 11:34 UTC] alan_k (Alan Knowles)
Have a look at the last changes, these should have fixed these. simple.phpt is the only vaguely working test at present, it crashes pear run-test due to a regex issue.