Skip to content

Test ordering is completely broken #73

@NeroVanbiervliet

Description

@NeroVanbiervliet

Test ordering does not seem to work anymore.
As an example, this is straight from the docs:

import pytest

@pytest.mark.second_to_last
def test_three():
    assert True

@pytest.mark.last
def test_four():
    assert True

@pytest.mark.second
def test_two():
    assert True

@pytest.mark.first
def test_one():
    assert True

But results in the following execution order:

...
order_test2.py::test_one PASSED
order_test2.py::test_two PASSED
order_test2.py::test_four PASSED
order_test2.py::test_three PASSED
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions