in reply to Testing Catalyst Views

The standard method to test a catalyst component (here a view) is to write a test a test application for it. Given that such an app can run as a standalone server, that's not too hard.

You might find CatalystX::Starter useful, which bootstraps an empty component, including a readymade test app.


holli, /regexed monk/

Replies are listed 'Best First'.
Re^2: Testing Catalyst Views
by Your Mother (Archbishop) on Apr 18, 2008 at 19:29 UTC

    Nice, I didn't know about CatalystX::Starter and just did one of my own by hand the same way. Where were you when I needed you?!

    You don't always need a test application though. Maybe usually don't. They're for testing generic, typically application-free, parts like plugins and base controllers and such. If you're writing a real app, you can test it directly, don't need to mimic it in a stripped down test version.