Re: Checkins for 2.7 and 2.8 and missing unit tests
Paul Winkler <[email protected]>
| Newsgroups | gmane.comp.web.zope.coders |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Dec 03, 2004 at 04:37:21PM +0100, Andreas Jung wrote: > I agree with you to some point. There are code areas in Zope 2 where we > have absolutely > *no* tests e.g. webdav. Adding one or two tests to annon-existing test > suite really > does not improve the code quality significantly. It does in one way. When I go to fix a bug, if I found there was a test suite for the module or class in question with even one stupid test in it, I would breathe a sigh of relief, because it's usually straightforward to add the tests I want to an existing suite. OTOH, when I have to add my own test suite from scratch, I frequently have found that I end up wasting half a day just getting the %@#)% thing to run at all, depending on what I'm trying to set up and what evil snags are lurking under the surface. (Example: I wasted a lot of time tearing out my hair on this one before I realized it had nothing to do with my new tests... http://zope.org/Collectors/Zope/1357 ) So IMHO adding a test suite with one test in it *does* add value - it is a potentially significant timesaver for future test writers. Lately I've been trying ZopeTestCase and found that it does indeed simplifiy test setup in the common case. Whew. > I think we have to live > with this > situation in the Z2 land forever. Sad but probably true. -- Paul Winkler http://www.slinkp.com