[Pyunit-interest] Verbose idea
Brought to you by:
purcell
From: Chuck E. <ec...@mi...> - 2001-03-16 03:23:08
|
Most of the time I run my test suites, I don't want to see any output other than each of the test names. However, when I'm having a problem, I would like to see more diagnostic output on what the test case is doing. Here's an idea: If a verbose flag was turned on via the command line (and on through TestSuite and TestCase), then I would get the extra output. Something like: def checkFoo(self): if self.verbose: print 'logging in' # blah blah if self.verbose: print 'logging out' More likely I would do this: def checkFoo(self): v = self.verbose if v: print 'logging in' # blah blah if v: print 'logging out' Also my print statements are more likely to have some arguments with data and so forth. -Chuck |