pytest的spec插件?

Ily*_*hev 5 specifications nose nosetests pytest

有没有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)
Run Code Online (Sandbox Code Playgroud)

转换为列表标题的测试用例名称和测试用例方法名称将转换为列表项.或者模块名称和顶级功能,它也是有意义的.

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

Fra*_*k T 1

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