The power of Drupal simpletests and the simpletest revolution | Cwgordon7's blog

The power of Drupal simpletests and the simpletest revolution

If you are looking for an up-to-date SimpleTest tutorial, please see my newer post.

The is awesome! I discovered it while I was looking for a new task, and I loved the idea of it immediately. So, I claimed the task, and I'm writing now to share what I learned with you.

What it is

The simpletest module extends the php simpletest framework. Basically, it allows users to run a series of automated tests on a Drupal install.

Why it's useful

Often, new code is entered into Drupal contributed modules, and even the Drupal core, without being thoroughly tested - or even tested at all, in some situations. With simpletest, tests become so easy (without having to manually try maybe hundreds of situations) that finding and fixing bugs becomes a breeze.

What we've found

Just in the past few days, during my coding for simpletest, two THREE FOUR critical core bugs for Drupal 6 have been found. This makes you wonder: is anyone actually bothering to test this stuff? And these weren't small issues; you'd think, if people were testing, they'd notice that node revisions were completely broken (they didn't WORK).

What you can do to help

You can help by joining the simpletest revolution! Module maintainers, write simpletests for your modules by implementing hook_simpletest! See the . Other Drupal coders, write simpletests for portions of the Drupal core not covered by the current simpletest module. And people who know nothing about code, post issues to applicable modules' issue queues asking for simpletests to be included.

Spread the word! Join the simpletest revolution!

Comments

Automated core testing coming

is a project to automate patch testing and running simple tests against the patch.

Awesome!

This is great! The more automated testing Drupal has, the better the quality of the Drupal core will be, and the faster we can develop cool new versions of Drupal.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

You must answer the above question correctly to be able to submit a comment. This measure is designed to protect this site against spambots, which seem able to circumvent even the toughest image captchas. Hint: try googling for the question answer if you really don't know it. The theory behind this is that if this website is running its own completely custom captcha, it will not be in anyone's economic advantage to rewrite their spam bot's code to handle this website's questions. Powered by CwgordonCaptcha.