gpt4 book ai didi

nose - pytest 的规范插件?

转载 作者:行者123 更新时间:2023-12-04 21:43:37 25 4
gpt4 key购买 nike

是否有类似于 Nose 的 spec 的 py.test 插件(也是 pinocchio 的一部分)。我想看到测试运行器输出如下所示:

Foobaz
- behaves such and such
- causes an error (ERROR)
- fails to satisfy this specification (FAILED)
- throws deprecated exception (DEPRECATED)
- throws skip test exception (SKIPPED)

测试用例名称转换为列表标题,测试用例方法名称转换为列表项。或者模块名称和顶级函数,它也会有意义。

我想自己 build 一个并不难,但也许已经有一个了?

最佳答案

查看 pytest_spec .它似乎做了一些与你想要的类似的事情,但也许不完全是。

关于nose - pytest 的规范插件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19468547/

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