Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test ordering is completely broken #73

Open
NeroVanbiervliet opened this issue Sep 22, 2020 · 3 comments
Open

Test ordering is completely broken #73

NeroVanbiervliet opened this issue Sep 22, 2020 · 3 comments

Comments

@NeroVanbiervliet
Copy link

NeroVanbiervliet commented Sep 22, 2020

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
Copy link
Author

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
Copy link

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
Copy link

mrbean-bremen commented Oct 25, 2020

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

bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this issue Apr 12, 2021
https://build.opensuse.org/request/show/879184
by user bnavigator + dimstar_suse
This package is in the list of the "Build fail notification" packages from yesterday.

Although a fix exists (ftobia/pytest-ordering#76) the package is not maintained upstream anymore: ftobia/pytest-ordering#73

 The only package depending on it was spyder. I removed the dependency  in sr#879181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants