[Catalyst] writing a test suite for my app

Daniel McBrearty danielmcbrearty at gmail.com
Mon May 15 01:07:16 CEST 2006


I guess I'm not really getting the synopsis for Catalyst::Test

(snip)

# Helper
    script/test.pl

    # Tests
    use Catalyst::Test 'TestApp';
    request('index.html');
    get('index.html');

    # Run tests against a remote server
    CATALYST_SERVER='http://localhost:3000/' prove -r -l lib/ t/

(/snip)

where is that last line happening? at the moment, I'm just doing "make test"
... where is CATALYST_SERVER being set up, and to what?

thanks for the help. it's late, a sleep may answer some of this ... i'll
take another look tomorrow ...

D


On 5/15/06, Daniel McBrearty <danielmcbrearty at gmail.com> wrote:
>
> I'm thinking that
>
> ok ( request('public/natlang'))
>
> should pass.
>
> [ ok ( request('/public/natlang')) works, which is fine by me ... though
> I'd have expected this to not work first as the first / belongs to the
> docroot in cat, doesn't it? ]
>
>
>
>
> On 5/15/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
> >
> > Daniel McBrearty wrote:
> > > ok, here is the controller , minus docs ... (I changed teh method from
> > > "index" to "natlang" as I remember seeing that cat treats "index"
> > > specially ... just to see if it was  to do with that. seems to be the
> > > same ...)
> >
> > Right. But how is the behaviour you're seeing differing from what you're
> > expecting?
> >
> > _______________________________________________
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060515/232b1c4c/attachment.htm 


More information about the Catalyst mailing list