SimpleTest: A unit testing framework for Drupal

The SimpleTest module is a framework for running automated unit tests in Drupal. It can be used to verify a working state of Drupal before and after any code changes, or as a means for developers to write and execute tests for their modules. It integrates with the SimpleTest PHP library.

Visit Administer >> Site building >> SimpleTest to display a list of available tests. For comprehensive testing, select all tests, or individually select tests for more targeted testing. (Note: Selecting all tests may take several minutes to complete.)

After the tests have run, a message will be displayed next to each test group indicating whether tests within it passed, failed, or had exceptions. A pass means that a test returned the expected results, while fail means that it did not. An exception normally indicates an error outside of the test, such as a PHP warning or notice. If there were fails or exceptions, the results are expanded, and the tests that had issues will be indicated in red or pink rows. Use these results to refine your code and tests until all tests return a pass.

For more information on creating and modifying your own tests, see the SimpleTest API Documentation in the Drupal handbook.

simpletest

cnegut - February 14, 2008 - 13:12

simpletest offer some prebuild test functionality,which can help us to double our code,but to have
sure feasible code.
Unfortunatly ,there is need for more support of real "worked" examples and documentation,in order
for simpletest to become o strong tools ,and easy for manipulting .

 
 

Drupal is a registered trademark of Dries Buytaert.