[Catalyst] writing a test suite for my app

Daniel McBrearty danielmcbrearty at gmail.com
Fri May 12 13:39:59 CEST 2006


thanks, I think I have it together now. Module::Sleep helped a bit.

Test::WWW::Mech .... looks like a brilliant module. Haven't figured out what
to use mockobject for yet though.

Gavin, is this the one you mean? looks good.

http://www.amazon.com/gp/product/0596100922/103-9488582-4915043?v=glance&n=283155

On 5/11/06, Daniel McBrearty <danielmcbrearty at gmail.com> wrote:
>
> ok , that was dumb ... I might try actually reading what it says ...
>
> or sleeping and reading it tomorrow. duh.
>
> cheers ...
>
>
> On 5/11/06, Daniel McBrearty <danielmcbrearty at gmail.com> wrote:
> >
> > OK, I already have teh stubs. There are already a few basic tests in
> > there ...
> >
> > I have this :
> >
> > daniel at debian-mcbreard:~/work/engoi/trunk/catalyst/Engoi$ ls -l t
> > total 20
> > -rw-r--r--  1 daniel daniel 156 2006-04-18 11:50 01app.t
> > -rw-r--r--  1 daniel daniel 216 2006-04-18 11:50 02pod.t
> > -rw-r--r--  1 daniel daniel 239 2006-04-18 11:50 03podcoverage.t
> > -rw-r--r--  1 daniel daniel 193 2006-04-18 11:50 controller_Public.t
> > -rw-r--r--  1 daniel daniel  88 2006-04-18 11:50 view_TToolkit.t
> >
> > but in fact I also have a Root controller - no stub for that? should I
> > create it?
> >
> > when I run ./script/engoi_test.pl I see the server start up, but it
> > seems to not actually test anything ... at least I don't see "you ran 3
> > tests, failed 0" or something like that ...
> >
> > right track ... ??
> >
> >
> >
> >
> >
> > On 5/11/06, Gavin Henry <ghenry at perl.me.uk > wrote:
> > >
> > > <quote who="Daniel McBrearty">
> > > > OK, I suck at writing tests. I admit it. I have no clue as to how to
> > > do it
> > > > "the perl way", whatever that is, apart from running "make test"
> > > when
> > > > installing a module. I have some module tests for one of my
> > > libraries
> > > > using
> > > > Test::Simple, and a hand written script to glue them all together.
> > > I've
> > > > just
> > > > been looking at Test::Inline and it looks cool, but I can't quite
> > > work out
> > > > if it will fit for this catalyst app.
> > > >
> > > > But I need to already start writing tests for my one controller
> > > before
> > > > shit
> > > > starts getting out of hand ...
> > > >
> > > > So how do I start? What's the first step? (I need to be able to
> > > manipulate
> > > > stuff in the session as well.)
> > >
> > > Have a look at the t/ dir when you download Catalyst tar or browse via
> > > search.cpan.org.
> > >
> > > There's also a cool O'Reily Test Notebook for the basics with all
> > > Test::*
> > > modules.
> > >
> > > >
> > > > thanks
> > > >
> > > > Daniel
> > > >
> > > > --
> > > > Daniel McBrearty
> > > > email : danielmcbrearty at gmail.com
> > > > www.engoi.com : the multi - language vocab trainer
> > > > BTW : 0873928131
> > > > _______________________________________________
> > > > Catalyst mailing list
> > > > Catalyst at lists.rawmode.org
> > > > http://lists.rawmode.org/mailman/listinfo/catalyst
> > > >
> > >
> > >
> > > _______________________________________________
> > > Catalyst mailing list
> > > Catalyst at lists.rawmode.org
> > > http://lists.rawmode.org/mailman/listinfo/catalyst
> > >
> >
> >
> >
> > --
> >
> > Daniel McBrearty
> > email : danielmcbrearty at gmail.com
> > www.engoi.com : the multi - language vocab trainer
> > BTW : 0873928131
> >
>
>
>
> --
>
> Daniel McBrearty
> email : danielmcbrearty at gmail.com
> www.engoi.com : the multi - language vocab trainer
> BTW : 0873928131
>



-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060512/8bee4aba/attachment.htm 


More information about the Catalyst mailing list