我该如何用鼻子测试来衡量python单元测试的执行时间? [英] How do I measure the execution time of python unit tests with nosetests?
本文介绍了我该如何用鼻子测试来衡量python单元测试的执行时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有办法计时由鼻子测试运行的各个Python测试的执行时间?
Is there a way to time the execution time of individual Python tests which are run by nosetests ?
推荐答案
You might try the nose plug-in posted here: https://github.com/mahmoudimus/nose-timer (or available via pip / PyPi). You can also use the built-in plugin --with-profile
to do more serious profiling.
这篇关于我该如何用鼻子测试来衡量python单元测试的执行时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文