gpt4 book ai didi

python - 在Python中向nosetests添加更多测试模式?

转载 作者:行者123 更新时间:2023-12-01 05:57:11 25 4
gpt4 key购买 nike

所以我有一个名为“test”的目录,其中还有一些目录,其中有很多测试。我如何添加这样的模式,以便nosetests确定这些测试并运行它?

最佳答案

您可以使用选项-i运行nosetests--include:

-i REGEX, --include=REGEX
This regular expression will be applied to files,
directories, function names, and class names for a
chance to include additional tests that do not match
TESTMATCH. Specify this option multiple times to add
more regular expressions [NOSE_INCLUDE]

关于python - 在Python中向nosetests添加更多测试模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11908552/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com