I'm about to start work on a new project, and noticed the simpletest module. This seems like a nice way to unit test the new code, especially any public APIs I expose. Who's using this now, and if you're one of them, how happy are you with the module as it is? Thanks, Rob Thorne Torenware Networks
Hi Rob, I think simpletest is great, and that everyone should be using it (ok, I admit it, I am a testing junky). That said, I had to do some hacking on it to get it to work with 4.6. cheers, -tao Rob Thorne wrote:
I'm about to start work on a new project, and noticed the simpletest module. This seems like a nice way to unit test the new code, especially any public APIs I expose.
Who's using this now, and if you're one of them, how happy are you with the module as it is?
Thanks, Rob Thorne Torenware Networks
On 2-Mar-06, at 10:54 PM, Tao Starbow wrote:
I think simpletest is great, and that everyone should be using it (ok, I admit it, I am a testing junky). That said, I had to do some hacking on it to get it to work with 4.6.
Rob Thorne wrote:
I'm about to start work on a new project, and noticed the simpletest module. This seems like a nice way to unit test the new code, especially any public APIs I expose.
Who's using this now, and if you're one of them, how happy are you with the module as it is?
I think Moshe did some work on this. One of the things we talked about in terms of vetting modules was that writing and maintaining simpletests for it could be one of the factors that indicates modules are a "higher level" of contrib module. Cheers, -- Boris Mann Vancouver 778-896-2747 San Francisco 415-367-3595 SKYPE borismann http://www.bryght.com
On Mar 2, 2006, at 7:56 PM, Rob Thorne wrote:
I'm about to start work on a new project, and noticed the simpletest module. This seems like a nice way to unit test the new code, especially any public APIs I expose.
Who's using this now, and if you're one of them, how happy are you with the module as it is?
We have thought about using simpletest for Drupal contrib modules that ship with CivicSpace. But embracing expensive processes without the backing of the Drupal community is really difficult. So if anyone is serious about using unit tests I suggest we start first with writing simple tests for core modules. Once these tests are shown to be useful by dev's to test their core patches, I think it will catch on with contribs. We did this with admin >> help >> modulename for Drupal core and it seems to be catching on for contribs. My two cents. Cheers, Kieran
Thanks, Rob Thorne Torenware Networks
Who's using this now, and if you're one of them, how happy are you with the module as it is?
FWIW, I recently commissioned Thomas, the Google SoC developer on simpletest project, to write a suite of tests for the organic groups module. Those tests will be available by end of month. I'm pretty happy with the simpletest framework in Drupal. I might be biased since I wrote it though. The Google SoC students did a great job extending it. And the simpletest project itself is magnificient.
We have thought about using simpletest for Drupal contrib modules that ship with CivicSpace.
great idea. start small. pick a simple module and write a few tests. No need to think of this as a huge commitment. But embracing expensive processes without the
backing of the Drupal community is really difficult. So if anyone is serious about using unit tests I suggest we start first with writing simple tests for core modules. Once these tests are shown to be useful by dev's to test their core patches, I think it will catch on with contribs.
these already exist, they just need some attention because so much has changed in recent months.
I'd be interested in contributing unit tests to Drupal Rore... I think it makes the possibility of contributing more approachable for someone like me who's not comfortable contributing full-blown modules, atm. John Hwang/tavon On 3/3/06, Moshe Weitzman <weitzman@tejasa.com> wrote:
Who's using this now, and if you're one of them, how happy are you with the module as it is?
FWIW, I recently commissioned Thomas, the Google SoC developer on simpletest project, to write a suite of tests for the organic groups module. Those tests will be available by end of month.
I'm pretty happy with the simpletest framework in Drupal. I might be biased since I wrote it though. The Google SoC students did a great job extending it. And the simpletest project itself is magnificient.
We have thought about using simpletest for Drupal contrib modules that ship with CivicSpace.
great idea. start small. pick a simple module and write a few tests. No need to think of this as a huge commitment.
But embracing expensive processes without the
backing of the Drupal community is really difficult. So if anyone is serious about using unit tests I suggest we start first with writing simple tests for core modules. Once these tests are shown to be useful by dev's to test their core patches, I think it will catch on with contribs.
these already exist, they just need some attention because so much has changed in recent months.
-- John Hwang
participants (7)
-
Boris Mann -
John Hwang -
Kieran Lal -
Kuba Zygmunt -
Moshe Weitzman -
Rob Thorne -
Tao Starbow