Testing and Quality Assurance

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
This group should probably have more organizers. See documentation on this recommendation.

Welcome to the group for the plumbers who keep the community plumbing from leaking. ;)

Testing frameworks such as SimpleTest and Selenium, automated testing, and general community QA initiatives are all on-topic here.

Manual testing is also totally on-topic.

al.ex's picture

Behavior Driven Development with Drupal – Behat module released

Hi there Testing group!

I'm happy to announce the release of the Behat integration module which allows developers to write tests for a Drupal site (or module) in "BDD"-style. BDD is a methodology for writing software features "outside in", i.e. using plain language to describe a feature's behavior first and the actual test code second. Find more information on BDD at http://bdd.alexo.it.

Read more
alberto56's picture

Testing integration with non-dependencies

Hi all,

Say I have a module A, which has some features which work with module B, but module B is not a dependency.

To test said features, I create a whole new "Test A B" module whose sole purpose is to have module A and module B as a dependency, and run tests against features which require both. "Test A B" module is stored in the "tests" subfolder of module A.

Wondering if that's the best approach, and if you are using any others.

Thanks,

Albert.

Read more
pavel.karoukin's picture

Testing against third-party DB

Hello,

I am developing module which provides integration with another software. I am using different "target" in settings.php to access DB for this third-party application.

Now if I write test, I need to have this target defined in test case too. Right now I am defining it manually via Database::addConnectionInfo in setUp() method, but this is not portable..

Any ideas how to do such type of testing?

Regards,
Pavel

Read more

Defining the Drupal 8 testing gate

Hi there, testing team! :)

Back at DrupalCon Chicago, Dries outlined a strategy for Drupal 8 involving a series of "gates" that would help ensure core code quality in a number of different categories: Documentation, Performance, Accessibility, Usability, and Testing. The purpose of gates is to define essentially a set of "checkboxes" which outline the most important aspects to each category, and does so in a way that is both not overwhelming to core developers (list of hoops to jump through is kept as small as possible) and also creates very little additional burden on the team in question (contains sample links to documentation/resources so developers/reviewers can help themselves).

Since we have already traditionally had requirements around documentation, it made sense to start there. Jennifer Hodgdon and some other folks from the documentation team have put together the Documentation gate, which is available at http://drupal.org/node/1203498. What we need is a similar table for each of the other gate areas. And that's where you come in! :D

Read more

PHPUnit testing in relation to Drupal. An overview.

Several efforts have been made to create a workable way of PHPUnit testing into drupal development. It goes back several years, but it's still actual. Information about PHPUnit and Drupal is heavily distributed on d.o and other sites. Here's a list (not exhausting) of discussions, projects, etc. Purpose of this list is to have a reference of what has been done, tried, etc before. Please feel free to bring in more...

Read more
mrchrisadams's picture

What is the state of unit testing with Drupal today?

Hi there,

I'm coming back to Drupal after a brief hiatus, and although I've looked around, I can't seem to find any up to date information about how best to unit test Drupal (I'm using D6 for now, but I haven't found anything for D7 either).

I'm asking about Unit testing, because my [previous experiments with Integration Testing seemed unusably slow][1], and although there is this [article here on lullabot][2], it's about 4 years old now, and it seems somewhat out of date.

Read more
rfay's picture

Outstanding Progress on Selenium/Simpletest Integration

I want to make sure that everybody in these groups knows about the fantastic simpletest + selenium integration work that ygerasimov has been doing. I just tested out his Selenium module (7.x) and it worked fine for me.

Here's what I did:

  1. Install Selenium module and start Selenium Server as described in the INSTALL.txt.
  2. Installed the Selenium Test Example sandbox for sample tests.
Read more

Building Selenium Tests for Drupal.org

The steps involved in taking forward the Selenium test for Drupal.org initiative:

Link to drupal.org issue queue: http://drupal.org/node/991040

  • Identifying a groups of people interested in building Selenium test-cases
  • Working on Identifying critical tests
  • Writing tests
  • Working with the infrastructure team to run these tests

If you are interested in building Selenium tests and supporting the same, please add you name and the area of support.

Implementers:

Read more
cyberswat's picture

Looking for Students

We are currently seeking students interested in learning about our AWS testing implementations. The primary objective is to create a curriculum that will help educate others understand the methods utilized by the Drupal infrastructure to support it's automated testing in the Amazon cloud. This is a prime opportunity for you to become involved in Drupal and help create positive learning materials to help others understand the benefits of Amazon cloud services as they apply to Drupal.

Read more
igor.ro's picture

Continuous Integration - Drupal way. Part 2 - Build.

Why should you read this article?

  • Developer, Team Leader, Admin:
    • You will find out how to use build script that will save your time, spend on configuration of your project on dev, test, stage and production servers, on local computers of managers and testers. 
    • Build script will allow you to make CI system and get all profits it gaves you.
  • Manager:
    • You have a lot of project in same time, and want to install in on local comp easily.
    • You will get standart way to install projects on some machine in one click. To install new project you have to run $ant in console. Do this on local machine.
    • You can demo machine with Husdon and build script. It will allow you allways have actual version of project to test and to show to client.
  • Tester, QA manager:
    • You have a lot of project in same time, and want to install in on local comp easily.
    • You will get standart way to install projects on some machine in one click. To install new project you have to run $ant in console. Do this on local machine.
    • You can make CI, add there tests and have regression testing easily.

Project page

ci-drupal

Read more
ezraw's picture

Test Case Management Tool?

Can anyone recommend a FOSS test case management tool? We're looking for something simple to organize our test suites and cases.

Reporting and integration with bugtracking (Mantis) would be awesome.

I've looked around and see there are a lot of options (http://www.opensourcetesting.org/testmgt.php), but hoping for some insight and feedback on particular tools. Thanks!

Read more
dasjo's picture

Simpletest with multilingual sites

i am using simpletest with a multilingual drupal 6 site. whenever simpletest executes a link, by using clickLink or drupalLogin for example, the url gets corrupted.

this is because the language code always appears twice in the url. for example: http://example.com/de/de/node.

i was wondering if someone else ran into this issue when testing a multilingual site with simpletest? do you know of any workarrounds / fixes to this issue? (http://drupal.org/node/944066)

thanks a lot,
josef

Read more
seanberto's picture

A beginner's guide to using Hudson for continuous integration with Drupal

Shameless plug, I just wrote up a beginner's guide to getting Hudson up and running for continuous integration. Huge shout out to Steve Merrill. Couldn't have figured any of this out without following his work.

http://thinkshout.com/blog/2010/09/sean/beginners-guide-using-hudson-con...

Love to get some feedback. Please consider retweeting if helpful:

http://twitter.com/#!/sean_larkin/status/25914260515

Excited to spread the word about continuous integration!!

Sean Larkin
ThinkShout.com
http://twitter.com/sean_larkin

Read more
globallyunique's picture

SimpleTest Help

Is there any site or group where it is appropriate to post questions about using SimpleTest? I'm currently struggling with SimpleTest performance on Windows. A DrupalWebTestCase takes many minutes to execute and I can't figure out if this is expected or what to start changing. I'd like to find somewhere that people have described how they've setup their Drupal environment to do TDD.

Read more
patcon's picture

Soliciting feedback for graphical Drupal promo video

Sorry if someone thinks I'm cross-posting too much, but I just wanted to get opinions from everyone who might have a stake in this :)

Alright, so I'm trying to think how I can do my part for this little community, and since I've got some degree of proficiency with Adobe Premiere and After Effects, I thought I might be able to put together a little video to explain exactly what Drupal is. I'm envisioning something with a catchy beat, and graphic/text elements -- no voice-overs. I'm in the really early stages of thinking about this, but I'm considering this picture to be my biggest influence right now as to the feel of the presentation:

Only local images are allowed.

(I really like the tetris-like style of it, and think that's something to work with!)

Read more
gutzofter's picture

[ANN] Debugging and TDDing Ajax with jQuery just got easier

I am freakin' excited!

I got tired of switching between tabs and firebug when trying to figure out what the hell was going on with my Ajax requests.

So I wrote a jQuery Plug-in. You attach it to your page and it will monitor all your Ajax requests[1].

Read more
gansbrest's picture

Small problem with drupalPost method

I'm using SimpleTest to test my custom CCK content type. Here is an example:

$this->drupalPost('node/1/edit', array('field_comp_addmargin[0][value]' => 0),'Save');

It actually saves the value, but for some reason it doesn't go through standard drupal handlers.. For example after I submit node_edit form it should fire nodeapi update event. In my case it not happens for some reason and because of that my custom piece of code which should be executed on nodeapi update never gets executed..

Read more
lukevr's picture

SimpleTest(6.x) on local development database without testing environment setup for each test?

Is there any thoughts about running SimpleTest test cases on current Drupal(6.x) database without creating separate environment for each test?
Some ideas can be found here:
Using a test database with Drupal unit tests: http://patshaughnessy.net/2009/1/16/using-a-test-database-with-drupal-un...
and here:
Using MySQL transactions with Drupal unit tests: http://patshaughnessy.net/2009/1/19/using-mysql-transactions-with-drupal...

Converting Drupal tables from MyISAM to InnoDB to have the possibility to use transactions?

Read more
igor.ro's picture

Continuous Integration - Drupal way.

Motivation:
I'm going to grow quality of products we get in company I working in.
I'm going to make ability to show bugs free product when client what. (functionality that marked "done" realy 100% done)
I'm going to make code clear and developement process managing.
I'm going to make regressive testing cheap.
I'm going to remove trivial round things from my live.

CI can help us.

Read more

Testing Drupal With Hudson

This wiki page is a placeholder to capture best practices for setting up Hudson to perform automated tests on Drupal.

Some quick links:

Much more to come! Add your favorite resources!

Read more
Subscribe with RSS Syndicate content