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