ftobia / pytest-ordering

pytest plugin to run your tests in a specific order
MIT License
231 stars 41 forks source link

Test ordering is completely broken #73

Open NeroVanbiervliet opened 4 years ago

NeroVanbiervliet commented 4 years ago

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
...
NeroVanbiervliet commented 4 years ago

Just saw that this repo is no longer being maintained, see #66 Would be a good idea to reflect this in the README and also consider removing it from pypi, because other people might waste time trying to get this to work :)

mrbean-bremen commented 4 years ago

I still have the hope that this will be handled in #32, if not it would make sense to make a fork and a new pypi package. I actually did merge some of the PRs together in a fork, but I'm somewhat reluctant to make a new package as long as it is not clear that the original package is really not maintained any more. Waiting for feedback from @ftobia ....

mrbean-bremen commented 3 years ago

Update: I made a fork and published it on PyPi. If this repo doesn't get revived, I will keep it.