[issue4080] unittest: display time of each test case

Ezio Melotti report at bugs.python.org
Fri Mar 2 16:27:35 CET 2012


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

Because it looks like line noise and doesn't provide an useful information in most of the cases (at least for me), see e.g.:

+   test_format (__main__.MyTestCase) ... [0.000612s] skipped 'not supported in this library version'
+   test_nothing (__main__.MyTestCase) ... [0.000486s] skipped 'demonstrating skipping'
+   test_windows_support (__main__.MyTestCase) ... [0.000090s] skipped 'requires Windows'

It might still be useful to find the slowest test(s), or for test suites that take a long time (so I'm not opposed to having it as an option that can be enabled if needed), but for most of the tests it will just show an almost meaningless fraction of second.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4080>
_______________________________________


More information about the Python-bugs-list mailing list