[Catalyst] Program the logic

Matt S Trout dbix-class at trout.me.uk
Wed Jun 28 16:43:25 CEST 2006

Nilson Santos Figueiredo Junior wrote:
> On 6/28/06, Eduardo Oliveros <eduardo.oliveros at gmail.com> wrote:
>> When you create a Catalyst application some tests are created also.
>> I thought calling the Controller actions could be performed by the
>> testing framework... (without using a browser)...
>> I guess I was wrong :)
> Yes, it can be performed without using a browser.
> If you've at least tried running those test you'd have seen it.
> Also, if you were really up to it, you could write something like a
> Catalyst::Engine::Tk and have and have a somewhat weird URI-based Tk
> handling (i.e. each of your widgets actions would be described by an
> URI). It just doesn't make much sense since Catalyst is geared towards
> web development, but perfectly possible.

For just a GET request on a URL, the myapp_test.pl script that's generated 
along with the rest should do the trick.

For programmatically calling stuff, look at Catalyst::Test and 

      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +

More information about the Catalyst mailing list