[py-dev] Fwd: Speed of py.test compared to unittest

Carl Friedrich Bolz cfbolz at gmx.de
Tue Nov 14 23:13:38 CET 2006


Pierre Rouleau wrote:
> On 11/14/06, Carl Friedrich Bolz <cfbolz at gmx.de> wrote:
>> I am not quite sure I buy that argument since py.test tells you the time
>> that the test itself took (if you use the -v argument) or that all tests
>> together take (at the end of each test run). As far as I remember, these
>> times don't include any startup times. Yes, wall clock time of the whole
>> test run is quite a bad measure, but you don't have to use it anyway.
>>
>> Cheers,
>>
>> Carl Friedrich
>>
> I didn't realize that the time of *each* test is shown when the -v
> option is used.  Thanks for pointing that out.

you're welcome :-)

Note that I didn't mean to imply that it isn't worthwhile to make
py.test startup time smaller. it's definitely a good thing to do, since
testing should have low overhead.

Cheers,

Carl Friedrich



More information about the Pytest-dev mailing list