Hi,
I commited the test suite and created a test which is located in t/
rest/user.yml.
I think this is a good start for new tests and works pretty good so far.
I added a few comments to the test so you can understand why certain
things happen or don't.
I usually run tests like this:
CatalystX-Controller-ExtJS mo$ perl -Ilib t/rest/user.yml
This way you get more output than using make test or prove.
You don't need to deploy the schema or do something like that. This is
handled in MyApp::Model::DBIC.
Testing a REST-app sucks because all those HTTP::* and LWP::UserAgent
modules
don't support it very well. Example: Try to post form data using PUT.
Have fun,
moritz
Am 10.04.2009 um 10:44 schrieb Mario Minati:
I wanted to step into the test creation for
CatalystX::Controller::ExtJS::REST
but am wondering how to start.
Do we need to create a complete Cat test app, including sqlite db to
test it
or is there maybe an easier way?
Which module would be a good start to take modules as template.
I wish a nice Good Friday,
Mario Minati
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu