Simpletest Resources

Posts: 3774
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

We're projecting a goal to have unit tests and preferably functional tests in core come Ubercart 2.0. This is a little ways out, since we'll first port 1.0 to Drupal 6. However, once we get on Drupal 6 it's open season. For more information, take advantage of the following resources. Please feel free to add your own links in this thread, too.

Many thanks to the Lullabots for their contributions to this list!

Please hold the patches for now, but feel free to use this forum for discussion and preparation. Testing in core will speed up the development process and help Ubercart become more solid at its core.

(If the testing system shipped with Drupal 7 is deviates from Simpletest, this forum and information will be updated accordingly. I doubt this will happen, but it was still a little up in the air in Dries' keynote.)

Posts: 2
Joined: 02/19/2008

I'm back! I'm upgrading the coupon module to be compatible with the newer versions of beta. I've started to setup simpletests to verify my manual testing results. I think it would be really great though if there is a standardized way to run tests on particular checkout processes. I guess what I'm thinking about is for a way for ubercart core to provide a function that creates a mock order object, instead of each writing the code to do this in each contrib modules test files.

Just some thoughts, I'll be sure to keep in touch as I progress through these tests.

Blake
www.boldsource.com

Posts: 3774
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Welcome back, Blake. Smiling Excellent thoughts, and I'd be happy to chat further with you about it. It seems like something like this would do well to start off as a contrib that we can roll into the core package come D6. I haven't had time to investigate SimpleTest much, but I'd be happy to lend some effort here when the time comes. Feel free to start a separate thread when you know what sort of helper functions would be useful, and we can pitch in.

Posts: 2
Joined: 02/19/2008

Sounds good. I'm starting to get familiar with simpeltest myself and I figured this would be a great way to get acquainted. I'll post up a new thread as I make more progress.