Thanks for this, David Dan
> -----Original Message----- > From: David Scott [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 11 April 2007 10:42 a.m. > To: [EMAIL PROTECTED] > Subject: Re: [cgiapp] Tests and CGI::Application > > Dan, > > I think testing is easy under C:A apps and I've automated a > few projects. > > I think the Test::WWW::Mechanize is a great way to test. > > To illustrate how to test C:A parts, I created a small > application with tests on a small C:A app and its underlying > object. Then I created a way to see the output from the > tests ... putting them up as links to check them out. > > http://www.geocities.com/leapingfrog/perl/perl.html > > In this case I'm also using CGI::FormBuilder so you get an > idea of its tests as well. > > There are a few ideas there that can be applied with any > underlying tester. > > Sincerely, > > David Scott > > --- Dan Horne <[EMAIL PROTECTED]> wrote: > > > Hi all > > > > Until now I've done very little automated testing with my > C::A apps. I > > know this is shock horror stuff to some, but in all honesty > the apps > > I've been writing for the last few years haven't really > suffered from > > a lack of tests (they're pretty stable, one developer -- me, > > localisable changes, easy to test by hand, very few bugs > reported by > > users). > > > > However, this is about to change. I'm now working on a project with > > multiple developers, and the changes and new functionality requests > > coming through left, right and centre. The user testing is a bit > > spotty, so it's even more important that there is some kind of > > rigorous automated testing. > > > > So my question is: how do you go about writing your tests? > I have no > > problem with writing them for my model and helper modules, but I > > haven't got my head around how to write tests for the > controllers and > > views. I guess Test::WWW::Mechanize is one module to look at, but I > > should also be looking at calling my controller code > directly as well > > as going through the front end. > > > > I downloaded Krang to have a look at how they've done > things, but it's > > a pretty big app, and there's a lot to look at. > > > > Any hints, tips, recounting of experiences appreciated > > > > Dan > > > > > > > --------------------------------------------------------------------- > > Web Archive: > > > http://www.mail-archive.com/[email protected]/ > > > > http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > ______________________________________________________________ > ______________________ > It's here! Your new message! > Get new email alerts with the free Yahoo! Toolbar. > http://tools.search.yahoo.com/toolbar/features/mail/ > --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
