WebCore icon indicating copy to clipboard operation
WebCore copied to clipboard

Document how to unit test WebCore apps

Open agronholm opened this issue 14 years ago • 1 comments

Using WebTest perhaps?

agronholm avatar May 26 '11 21:05 agronholm

WebTest is one approach, but with WebCore applications is not ideal. Unit testing the controller methods directly (using nose or whatnot) will be an excellent approach as WebCore controllers, unlike many others, return the name of the template and the data, allowing you to very rapidly test the crap-in-crap-out case. The templates can then be separately tested by utilizing alacarte/marrow.templating directly.

Separation of testing of the MVC components should be quite effective, and simpler to get going than full request processing (and parsing the resultant HTML).

amcgregor avatar May 30 '11 21:05 amcgregor