[Pyunit-interest] Verbosity levels in output
Brought to you by:
purcell
From: Dinu G. <gh...@da...> - 2001-05-17 10:41:18
|
Steve, thanks for your previous reply! Now for something different... In the Python CVS tree I find in test_support.py the following snippet: def run_unittest(testclass): """Run tests from a unittest.TestCase-derived class.""" if verbose: runner = unittest.TextTestRunner(sys.stdout, verbosity=2) else: runner = BasicTestRunner() [...] Unfortunately, I can't find any piece of code that would allow for the verbosity keyword argument, certainly not in the 1.3.1 or 1.2.0 distributions of PyUnit. OTOH, there seem to be a few classes like VerboseTextTestRunner in 1.3.1, but they aren't mentioned in the HTML documentation. So, I'm a bit confused... In general, what I'd like to have is an adjustable verbosity level as shown in the code snippet above, that would, e.g., allow to suppress or not printing (the first line of) the doc strings of the test functions. Oh, now I see that the Python CVS tree has its own unittest.py module, that *does* specify this verbosity argument. How comes then, this is not in the 1.3.1 distribution? Is it going to be added in the next one an when will that be? I'm sure there won't be two different versions of PyUnit, one inside and one outside of the Python distro... isn't it? Thanks, Dinu |