Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jk2addict (4946)

  (email not shown publicly)
AOL IM: chrislaco (Add Buddy, Send Message)
Yahoo! ID: (Add User, Send Message)

Journal of jk2addict (4946)

Thursday May 01, 2008
11:45 AM

Test Classery

[ #36304 ]

So it finally happened this week. I needed to run a batch of live Catalyst tests against a controller three times: once as the default uri, once where the path config was changed to alter the uri, and once where the subclass was renamed to alter the uri.

Same tests. Three paths. Perfect opportunity to move to Test::Class for those tests. A little $self->path jiggery in the tests and two subclasses later and the deed is done.

Triple the tests in less than a half hour of coding. One setup method. Nice.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.