How to know time spent on each test when using unittest?

前端 未结 7 1383
-上瘾入骨i
-上瘾入骨i 2021-02-05 00:37

Unittest presents only total time spent on running all tests but does not present time spent on each test separately.

How to add timing of each test when using unittest?

7条回答
  •  [愿得一人]
    2021-02-05 01:19

    Nose tests with the pinnochio extension has a stopwatch option which will give you this, if nose is an option for you.

    It also has a ton of other useful features and plugins to make using unittest nicer.

提交回复
热议问题