gpt4 book ai didi

python - X 连续失败后停止 pytest

转载 作者:行者123 更新时间:2023-11-28 21:32:17 24 4
gpt4 key购买 nike

目前 pytest 有 --maxfail=X 标志,在 X 总计失败后停止整个系统。

有人能告诉我如何做同样的事情但不是完全失败,而是连续 X 次失败吗?

谢谢!

最佳答案

尝试使用--maxfail 参数。 checkin pytest -h:

pytest --maxfail=num

关于python - X 连续失败后停止 pytest,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15259102/

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