pytest-ordering icon indicating copy to clipboard operation
pytest-ordering copied to clipboard

should pytest-ordering be deprecated in favor of pytest-dependency?

Open ftobia opened this issue 6 years ago • 3 comments

Are there use cases for an ordering-specific pytest plugin that aren't fulfilled by pytest-dependency? If not, should we deprecate pytest-ordering in favor of pytest-dependency?

Comments and discussion welcome.

ftobia avatar Oct 09 '19 14:10 ftobia

No , we should not deprecate pytest-ordering. @ftobia

rajibmitra avatar Oct 14 '19 10:10 rajibmitra

Does pytest-dependency has a way to order the tests. Because right now if the tests that depend on another test to finish, runs first it is marked as skipped.

adityagautam avatar Oct 16 '19 18:10 adityagautam

@ftobia I just ran into pytest-ordering, thank you for creating it! I have a test here that needs to be run before any other tests involving pytest-qt. pytest-ordering appears the framework to do this, because I don't want to mark every single qt test as dependent on this one test. Rather, I want to say, run this test first, then do whatever you want. Does pytest-dependency have this functionality?

It would be great to be able to mark that whole file as "run first" and then rely on test ordering within that file, but this is a very minor nitpick. Right now it suits our purposes perfectly, and all I want is a bit of assurance of future maintenance. =P

jni avatar Oct 30 '19 06:10 jni