pytest的Spec插件是什么?

5

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

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

测试用例名称转换为列表标题,测试用例方法名称转换为列表项。对于模块名称和顶级函数,这也是有意义的。
我想自己构建一个并不难,但也许已经有现成的了?
1个回答

1

请查看pytest_spec。它似乎做了与您想要的类似的事情,但可能不完全相同。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接