0

My company has taken maintenance of a Drupal website where there are some modules that have been specifically developed for this site.

I have to answer to a question that most software do: how can we do "software testing" and "regression testing" with Drupal?

3 Answers 3

3

Drupal 7 comes with a Testing module, and for Drupal 6 you can download http://drupal.org/project/simpletest.

It doesn't do anything automatically (how could it..) but it allows you to write automated tests that test the functionality of your custom modules.

I wrote a blog post about this a while ago: Writing automated tests for Drupal 7. Even though the title says Drupal 7, most of it applies to Drupal 6 too. See Simpletest documentation on drupal.org for more information.

3
  • Using tools like Selenium, you can automate testing of the website. This is not Drupal a specific solution and can be used with any web stack.
  • Drupal 6 and 7 have their own testing framework called SimpleTest which can be used to perform functional testing and unit tests (with some caveats, because Drupal itself isn't suited for unit testing). This solution is tied to Drupal and requires a good understanding if Drupal as a developpement platform.
0

I am sorry, but I think your question is a little too broad to answer.

It sounds like you need to maintain a site, and the site has custom modules that it uses.

It also sounds like maybe you are interested in knowing how to go about testing new changes you intend to make for the site.

If all of this is true then I think you need to learn Drupal first.

This page should get you started: http://drupal.org/documentation/develop

You may also want to look at the Devel module: http://drupal.org/project/devel

If you have a little more specific details let us know so we can help you out.

1
  • Thank you I check this as good, because it summarize what I've asked for and a solution (which may not be the best but it seems there's no automatic tool to insure that some things still behave the way we want). Thank you very much indeed! Oct 15, 2011 at 6:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.