Simpletest Resources

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.)

blakelucchesi@drupal.org's picture
Offline
Joined: 02/19/2008
Juice: 4
Considerations

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

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
Re: Considerations

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.

blakelucchesi@drupal.org's picture
Offline
Joined: 02/19/2008
Juice: 4
Re: Re: Considerations

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.

neochief@drupal.org's picture
Offline
Bug Finder
Joined: 05/10/2008
Juice: 76
Re: Simpletest Resources

Ryan, is there any progress with SimpleTests going right now? Recently, I made a bunch of test for your Restrict Qty, so right now I'm full of enthusiasm to make some more, but it would be better if it will be some kind of sprint, so we're all will be envolved.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6841
Re: Re: Simpletest Resources

At this moment, there isn't. I did write one test a while back, but I'm pretty sure it's broken right now.

If you're ready to start writing tests, I certainly don't want to stop you. They're one of the main goals for 3.x, so I'd appreciate any head start in that direction. There's a sprint going on this weekend, so maybe tests can be part of the agenda.