Unless there's some specific need to exercise the server code by
making full-fledged HTTP requests against it, you could rewrite your
unit tests to call your own server code directly, and use a mocking
framework like Michael Foord's Mock
(http://www.voidspace.org.uk/python/mock/) or pymox
(http://code.google.com/p/pymox/) to mock away other services and
library calls that would normally only make sense at runtime. This
should encourage individual unit tests that are smaller, more
numerous, more granular, and more highly focused on testing your own
production code. Also easier to maintain, less brittle, yadda, yadda.
Client-side testing could be moved into its own projects (perhaps
using Selenium, jsTestDriver, etc.), completely independent of the web
application and CherryPy. Together with your server-side unit tests
and confidence in CherryPy's own unit tests, you'd have complete code
coverage, with one-to-one coupling of unit test projects to production
components, which should make the whole system very flexible.
Just food for thought.
Jacob
> --
> You received this message because you are subscribed to the Google Groups
> "cherrypy-users" group.
> To post to this group, send email to cherryp...@googlegroups.com.
> To unsubscribe from this group, send email to
> cherrypy-user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cherrypy-users?hl=en.