Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spec plugin for pytest?

Is there a plugin for py.test similar to noses's spec (also a part of pinocchio). I want to see test runner output look like this:

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

Testcase names transformed into list titles and testcase methods names are transformed into list items. Or module name and top-level functions, it will make sense too.

I guess it's not that hard to build one myself, but maybe there is one already?

like image 943
Ilya Baryshev Avatar asked Nov 12 '22 20:11

Ilya Baryshev


1 Answers

Check out pytest_spec. It appears to do something similar to what you want, maybe not exactly though.

like image 200
Frank T Avatar answered Dec 10 '22 09:12

Frank T