in reply to Web testing without the web server.

If Catalyst::Test is unable to do what you want, I'd suggest extending that instead of starting from scratch. It looks to me like you should be able to set anything you want by setting %ENV before calling it, but do test that.

You may also find Configuring Catalyst's Makefile.PL? relevant as you're trying to set things up.

  • Comment on Re: Web testing without the web server.

Replies are listed 'Best First'.
Re^2: Web testing without the web server.
by kyle (Abbot) on Mar 27, 2009 at 17:58 UTC

    It looks to me as if Catalyst::Test will work for me.

    # HTTP::Response & context object my($res, $c) = ctx_request('index.html');

    If I understand this right, I get the response and context object as they were when the request finished. As such, I can dig in and get the parameters that were passed to the template, the HTML content, headers, etc. That's excellent!

      That is correct. However be warned that out of the box it does not let you easily set things like remote IP addresses and cookies when you construct a request.