About 'pytest-ordering' -> the value of 'order' #10527
-
Hello guys, I am using pytest-ordering to queue my tests up. But I am facing a awkward situation: I have a test that I would always put it as the last test. But I am keeping adding new tests into my test framework, so, it is like, I had 12345 tests yesterday, but todays it is like total 12346 tests, I first have to give my new 12345 test 'test_balabala.py' an order 12345, then I change the order of the 'LAST_test.py', into new value order=12346, it is not smart right? I know I could just give it a value that is super big like order=999999, but it is not smart enough. XD Is there any smart way to place my LAST_test.py just as a last test? Thanks. :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
pytest-ordering is unmaintained - I suggest using pytest-order instead (even the pytest-ordering README suggests that). According to the readme of pytest-order, it supports:
So I suppose with that, |
Beta Was this translation helpful? Give feedback.
pytest-ordering is unmaintained - I suggest using pytest-order instead (even the pytest-ordering README suggests that). According to the readme of pytest-order, it supports:
So I suppose with that,
@pytest.mark.order(-1)
is all that's needed.