Re: [Pyunit-interest] Verbose idea
Brought to you by:
purcell
From: Steve P. <ste...@ya...> - 2001-03-16 08:29:12
|
Chuck Esterbrook wrote: > 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. The CVS version has this functionality, and it will be in the next release. Fred Drake talked me into adding it a while ago. So in the next release you can expect that the default output is '.', 'E' or 'F' for each test, followed by a summary of any errors. With a '-q' (quiet) command-line flag, only the errors will be printed, and with a '-v' (verbose) flag, the output will be as it is in 1.3.1. I'll be removing the JUnitTextTestRunner in the next release, because this configurability of output levels obsoletes it. If anyone cares to look at the CVS version, comments would be gratefully received. There have been several changes, the most interesting of which is that 'unittest.main()', when called without arguments, now locates and runs all of the tests in the current module. Best wishes, -Steve -- Steve Purcell, Pythangelist Get testing at http://pyunit.sourceforge.net/ Any opinions expressed herein are my own and not necessarily those of Yahoo |