On Thu, Nov 10, 2011 at 10:06 AM, Edward K. Ream <[email protected]> wrote: > On Thu, Nov 10, 2011 at 9:50 AM, Terry Brown <[email protected]> wrote: > >> I'm starting to get test envy :-) But it seems most everything I do >> involves round trips to client web browsers and multipart <form>s >> linked to multiple database objects, simple tests just don't spring to >> mind.
> This doesn't mean that creating tests in your situation will be easy, > or even possible, but once the momentum builds you might be surprised > by the clever strategies that appear. The crucial requirement, as Kent points out, is that new unit tests should *fail* on the initial buggy code and succeed on the fixed code. This suggests a "web test harness", perhaps based on Python server classes, that does the minimal: namely *fails* as required. In particular, the harness need not actually interact with the web, or much of anything else... HTH. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
