列出Nosetest发现的所有测试 [英] List all Tests Found by Nosetest
本文介绍了列出Nosetest发现的所有测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用nosetests
来运行单元测试,并且效果很好.我想获得nostests
找到的所有测试的列表,而无需实际运行它们.有办法吗?
I use nosetests
to run my unittests and it works well. I want to get a list of all the tests nostests
finds without actually running them. Is there a way to do that?
推荐答案
当前版本为0.11.1.您可以获取测试列表,而无需运行它们,如下所示:
Version 0.11.1 is currently available. You can get a list of tests without running them as follows:
nosetests -v --collect-only
这篇关于列出Nosetest发现的所有测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文