Piotr Dobrogost p...@python.dobrogost.net added the comment:
@Michael Foord
I am in the process of creating an extension mechanism for unittest
which will make adding this sort of use case to unittest much easier
How is it going?
--
nosy: +piotr.dobrogost
Michael Foord mich...@voidspace.org.uk added the comment:
I am in the process of creating an extension mechanism for unittest which will
make adding this sort of use case to unittest much easier. *Even* if it is
added to the core it should be in the form of an extension (plugin) so please
Pawel Prokop pa...@uek.krakow.pl added the comment:
I think that a delay time of calling a decorator is not important, because this
should be constant in each test execution, so no matter.
I shall be able to provide a patch in few days.
Thanks
--
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Pawel, could you please provide an update wrt Ezio's comment on msg109448,
thanks.
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4080
Ezio Melotti ezio.melo...@gmail.com added the comment:
The idea is interesting, but I would prefer to have a way to enable/disable
this feature (and maybe even specify its format, e.g. the number of decimals).
Moving the logic to an external function (possibly used as a decorator) might
avoid
Pawel Prokop pa...@uek.krakow.pl added the comment:
Repack of unittest was good idea. It is a patch against trunk, one test
case is provided and documentation update.
--
Added file: http://bugs.python.org/file15332/unittest_runTime.patch
___
Python
Michael Foord mich...@voidspace.org.uk added the comment:
Needs test and documentation. Otherwise looks good.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4080
___
Changes by Daniel Diniz aja...@gmail.com:
--
components: +Library (Lib), Tests -None
nosy: +michael.foord
priority: - normal
stage: - test needed
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
New submission from Pawel Prokop [EMAIL PROTECTED]:
I've needed to measure each unit test running time
to measure the performance changing of each functionality
that every test case tests.
Latest version of pyunit has only displayed summary running time of the
suite, so I've implemented small