• HOME
  • ABOUT ME

www.jeremyfrench.co.uk

  • tags
  • my photos
Activity Stream › jeremyfrench's Activity Stream › 506

Answer by Jeremy French for Using the simpletest automator in Drupal 6.

jeremyfrench — Tue, 01/26/2010 - 15:46

Is there a script that can figure out the settings of the current drupal install?

The short answer is no.

Essentially simpletest should be used as a unit test framework. Where all of the data that is needed is set up at the beginning of the test and it is not reliant on system setting or a particular user having a permission. It does this quite well, and can test core functionality and individual modules easily. If you are testing an indavidual module you have written using simpletest is, well, simple.

Unfortunately most websites use a number of modules and are configured to work together in a very specific way. Simpletest doesn't cope with this very well.

There are ways to get around this:

One option is to write a setup script in php which will work as a big setup script for your test. This can create users, set settings and permissions. This can be dificult to write and maintain and can cause the tests to take a long time to run.

Another option is for the site testing (which is different from unit testing) to be done in a tool other than simpletest. I have had some success with selenium. The downside to this is that you need to find a way have clean data. Which can be tricky, copying a database works but doesn't scale.

See original: User Jeremy French - Stack Overflow Answer by Jeremy French for Using the simpletest automator in Drupal 6.

Activity Stream

July 30, 2010

  • Twitter jeremyfrench tweeted "JFrenchTweet: Good end to the week. Got something working well before I left. Then did grocery shopping from the train with the #ocado Android app." 5:09pm #
  • User Jeremy French - Stack Overflow jeremyfrench posted Answer by Jeremy French for In Drupal 7, how do I show a new form that can edit data selected from a different form? 9:19am#

July 29, 2010

  • foursquare jeremyfrench checked in at Cafe Nero1:38pm#

July 28, 2010

  • User Jeremy French - Stack Overflow jeremyfrench posted Answer by Jeremy French for How to get and set the delta value in Drupal 6.x? 3:09pm#
  • User Jeremy French - Stack Overflow jeremyfrench posted Answer by Jeremy French for How to get and set the delta value? 3:09pm#
  • User Jeremy French - Stack Overflow jeremyfrench posted Answer by Jeremy French for Drupal: hiding node titles 12:09pm#
  • User Jeremy French - Stack Overflow jeremyfrench posted Comment by Jeremy French on How to get and set the delta value in Drupal 6.x? 12:05pm#
  • User Jeremy French - Stack Overflow jeremyfrench posted Comment by Jeremy French on How to get and set the delta value? 12:05pm#
  • User Jeremy French - Stack Overflow jeremyfrench posted Comment by Jeremy French on In Drupal 6, what's the quickest way to set up a WYSIWYG editor with code syntax highlighting and image upload? 10:22am#
  • Twitter jeremyfrench tweeted "JFrenchTweet: Facebook introduces "Questions", will this be a competitor to the stack exchange sites or another yahoo answers?" 9:15am #

Links

  • Tags
  • my photos

Powered by Drupal, an open source content management system
  • tags
  • my photos