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 is heavily distributed on d.o and other sites.
Here's a list (not exhausting) of discussions, projects, etc about PHPUnit and Drupal.
Purpose of this list is to have a reference of what has been done, tried, etc before.
- http://drupal.org/project/drunit
- http://drupal.org/project/phpunit
- http://drupal.org/node/483940
- http://patshaughnessy.net/tags/drupal
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 moreGetting Involved in SimpleTest
Now that SimpleTest is apart of Drupal core issues related to the 7.x development have been moved to the core issue queue. If you would like to be involved I have included two links which will filter the issues to only display SimpleTest related issue. You can obviously used the advanced search feature to narrow your results to the SimpleTest related components instead of using the links.
Read moreTests in core: What's next?
We now have a testing framework in Drupal core. What we need to move forward is some structure that makes writing tests easy and efficient so that we can go towards our 100% code coverage goal without wasting development resources.
Read moreUnit -vs- UI testing
Please correct me if I'm wrong, but it seems that this group's purpose is to concentrate on unit testing and code coverage. Excellent. This is a definite sign of maturity for Drupal.
But I also see some posts in here that refer more to UI centric testing. Is there yet an effort for organizing this testing as well?
Read moreTest stub generator...
Hello, I've written a perl script (fastens fire-proof suit) that generates module files as well as a test file complete with a test class and stubbed methods. I've posted the code as an issue to the simpletest module as webchick suggested: http://drupal.org/node/233261
From the documentation:
Features:
- creates a module folder and associated file skeletons
- generates a test class and test methods and places them in a test file
recognized by SimpleTest. This currently only covers unit tests,
and not higher level tests like functional or integration tests.
Introduction to Unit Testing on Lullabot.com
Hi everyone. I've written an article introducing unit testing and the Simpletest module on Lullabot.com. Hope you enjoy it!
Read moreDrupal testing talk
There will be a discussion about Drupal testing and how to make it happen at Drupalcon Barcelona BOF room 1.
Sorry for such a short notice.
Automatic testing security issues?
One of the biggest concerns about automatic testing is how to prevent potentially dangerous code to cause harm to the server and other tests.
Read moreUnitTesting: current work
After the jump, here's what I know is happening as of late May 2006. Add a comment and or post your activities related to Unit Testing because i am sure this is not comprehensive:
Read more





