Setup and configuration
Requirements
SimpleTest has a few non-default requirements, but they are the same for both SimpleTest 6.x-2.x and Drupal 7 core SimpleTest. In addition to the requirements listed below, all core requirements need to be met since tests may execute any module.
- CURL extension for PHP
- DOM extension for PHP. DOM support is included by default in php5.
- Recommended PHP memory limit of 256MB (not exact)
Drupal 7.x
- SimpleTest is now in core. So you don't need to install SimpleTest module. But you must enable it under admin/config/modules
- Then go to SimpleTest settings page under admin/config/development/simpletest/settings to configure the HTTP auth settings.
Environment
Since SimpleTest will be accessing your computer in the same manner as your browser does, it needs to have the necessary permissions (ie. HTTP auth, firewall) to access your development site.
Once you have these items in place you may enable SimpleTest.
Drupal 6 settings.php modification
In Drupal 6.2 (only) you need to add the follow PHP snippet to the end of your settings.php file. Higher versions of Drupal 6 do not require these modifications.
<?php
$GLOBALS['simpletest_installed'] = TRUE;
if (preg_match("/^simpletest\d+$/", $_SERVER['HTTP_USER_AGENT'])) {
$db_prefix = $_SERVER['HTTP_USER_AGENT'];
}
?>More details are available in the SimpleTest INSTALL.txt.
