I am having some issues getting SimpleTest to run.
My setup is a clean Drupal 6.10 install with Some core modules, Devel, Simpletest, AdminMenu, and LoginTobaggan enabled. I have made the changes to settings.php and install.php.
When I try to run the Admin Menu test I get the "An Error has occured. Please continue to error page." message with a dump of a page :
An error occurred. /batch?id=14&op=do <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ...
Clicking the link directs me back to the testing page with an error message: "The tests did not successfully finish.".
When I try to run the tests for the SimpleTest module the javascript on the testing page freezes.
When I try to clean the testing environment I get the following SQL error:
User warning: SELECT command denied to user 'drupal_6x'@'localhost' for table 'tables' query: SELECT table_name FROM information_schema.tables WHERE table_schema = '6x_drupal' AND table_name LIKE 'simpletest%' in _db_query() (line 128 of /var/www/vhosts/terraeclipse.com/subdomains/6x.drupal/httpdocs/includes/database.mysqli.inc).
Thanks for any insight to these problems. I'm excited to start porting to Drupal 6 with a test-driven methodology.
Comments
Comment #1
boombatower commentedThe clean issue appears to be a mysql permission issue. It needs access to the information_schema database.
The simpletest.test itself doesn't pass currently as it is a backport of D7 test and hasn't been completely updated....the block test does not have any issues and should run.
Does the block test work if you run it by itself?
Comment #2
te-brian commentedHi,
I just wanted to respond to this in case people stumble into it.
The Issues with testing some of the existing modules appear to just be an issue of those tests not being fully backported yet.
The problem with cleaning the database was due to the fact that we are using MYSQL 4 and the SimpleTest module used some MYSQL 5 syntax. However, my colleague carlos8f, has been delving into SimpleTest much more than myself and has since solved this issue by updating the cleaning function to use "SHOW TABLES" instead of the "Information Schema". His code was committed into the SimpleTest CVS so it should not be an issue to future MYSQL 4 users.
Keep up the great work with this module.