On Sun, 15 Apr 2007 20:32:04 -0400, Slava Akhmechet coffeemug@gmail.com wrote:
It looks like you've already given all the information on how to do that, it's just a matter of making it part of hunchentoot (assuming it makes sense).
I'm not yet convinced that that would make sense. I can certainly see the benefit of being able to easily test web applications written with Hunchentoot, but I wonder how much of its internals Hunchentoot should expose for this. If you have to add a lot of code for this, it will be hard to maintain and keep in sync with Hunchentoot, and the chance of the test facilities behaving differently from Hunchentoot itself will increase.
Also, I'm not sure if the test suite for a web application shouldn't be in an image different from the web server and operate as a web client. That way it'll be much closer to a real-world scenarion you want to test. Can you point me to other web servers that provide "hooks" for unit testing them without external clients?