On Oct 4, 1:02 pm, brad <[EMAIL PROTECTED]> wrote: > Does anyone else feel that unittesting is too much work? Not in general, > just the official unittest module for small to medium sized projects? > > It seems easier to write some quick methods that are used when needed > rather than building a program with integrated unittesting. I see the > value of it (the official unittest that is)... especially when there's a > lot of source code. But this... > > if len(x) != y: > sys.exit('...') > > is a hell of a lot easier and quicker that subclassing unittest.TestCase > on small projects :) > > Do others do their own "informal" unit testing? > > Just curious, > > Brad
I actually do a lot of unit testing. I find it both annoying and highly necessary and useful. I can't tell you how many bugs have been squashed before ever leaving my cube by good unit testing. I also agree that it can be a real pain. My opinion is you should do TDD (test-driven development) and do it as much as you can tolerate. It really will save you time and hassle in the long run. -- http://mail.python.org/mailman/listinfo/python-list