Run tests

Last modified: November 28, 2009 - 09:30

Once you have completed the Setup and configuration you are ready to run some tests.

  1. Visit admin/config/development/testing where you will find a listing of the all the tests, grouped by what they test.
  2. Select the tests or group of tests you wish to run.
  3. Press the Run tests button at the bottom of the page.

Once the tests have finished the results will be displayed and any failing tests will have the results expanded.

Run tests from the command line

stefgosselin - November 27, 2009 - 07:29

Thinking out loud this would maybe be a nice place to add information on running tests from the command line.

Sure, we have the very cool scripts/run-tests.sh in core to tame the task, the only thing lacking is a bit more documentation.

Read: The man-type page with detailed explanations to the options is great, yet I had the peculiar situation of having different test results when comparing command-line vs gui, I wound up here looking for information on running run-tests.sh from the command line. After a bit of tweaking, my tests wound up running fine. It was a simple run-the-tests-with-webserver-permissions type of thing.

A few simple sections that would be nice to have covered, from the top of my head could be:

  • Running tests from the command line without drush
  • Running tests from the command line with drush
  • How to access the details of the test results from the command line
  • Notes on the 'gotchas' involved ( permissions, paths )
  • I am willing to contribute what I can to document this, if anyone has suggestions/insights on this particular topic, feel free to contact me.

    I have yet to see any problem, however complicated, which, when looked
    at in the right way, did not become still more complicated.
    -- Poul Anderson

     
     

    Drupal is a registered trademark of Dries Buytaert.