Re: [Catalyst] testing catalyst app - need context

2009-03-02 Thread Ian Docherty
Kate Yoak wrote: Hi there, Here is a newbie question: I like to test my functionality in bits and pieces as I write it. How do I go about getting myself the context object in a test script? For example, one of the tests catalyst installs is t/model_App.t where it loads the model. I'd love

Re: [Catalyst] testing catalyst app - need context

2009-03-02 Thread David Wright
Ian Docherty wrote: Kate Yoak wrote: Hi there, Here is a newbie question: I like to test my functionality in bits and pieces as I write it. How do I go about getting myself the context object in a test script? For example, one of the tests catalyst installs is t/model_App.t where it loads

Re: [Catalyst] testing catalyst app - need context

2009-03-02 Thread David Wright
J. Shirley wrote: On Mon, Mar 2, 2009 at 5:00 AM, David Wright dave-catal...@dexy.org mailto:dave-catal...@dexy.org wrote: Ian Docherty wrote: Kate Yoak wrote: Hi there, Here is a newbie question: I like to test my functionality in bits and

[Catalyst] testing catalyst app - need context

2009-03-01 Thread Kate Yoak
Hi there, Here is a newbie question: I like to test my functionality in bits and pieces as I write it. How do I go about getting myself the context object in a test script? For example, one of the tests catalyst installs is t/model_App.t where it loads the model. I'd love to then be able to

Re: [Catalyst] testing catalyst app - need context

2009-03-01 Thread Jason Galea
Hi Kate, have a look at http://search.cpan.org/~jkutej/Catalyst-Plugin-CommandLine-0.05/lib/Catalyst/Plugin/CommandLine.pm I've only used it once or twice and I don't know if it's considered best practice or not but it worked for me.. (I wanted easy access to Catalyst app config) cheers,