-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
When test order is modified with pytest_collection_modifyitems, the tests are still executed in alphabetic order of modules. A minimal example:
# test_first.py
def test_one():
assert True
# test_second.py
def test_two():
assert True
# conftest.py
def pytest_collection_modifyitems(items):
items[:] = reversed(items)
Running this with pytest without the plugin indeed executes the tests in the opposite order. After installing the plugin, the order is reverted to alphabetical.
I tried @pytest.hookimpl() with trylast=True and tryfirst=True to no avail.
pytest==8.3.5
pytest_robotframework==4.3.2
Metadata
Metadata
Assignees
Labels
No labels