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

set reruns does not work #265

Open
yeego1 opened this issue Mar 8, 2024 · 5 comments
Open

set reruns does not work #265

yeego1 opened this issue Mar 8, 2024 · 5 comments

Comments

@yeego1
Copy link

yeego1 commented Mar 8, 2024

I've already set --rerun 1, bug it does not work

pytest args: ['-n', '7', '--reruns', '1', '--dist', 'loadscope', 'test/xxxx/test_case/xxxxxx', '--alluredir', 'allure_report/xml', '--junitxml=output/result.xml']


class TestDebugRerun:

    def test_debug_rerun(self):
        logging.info("post request")
        assert False

=========================== short test summary info ============================
2024-03-08 11:10:43.929 FAILED xxxxxxxxxx.py::TestDebugRerun::test_debug_rerun
2024-03-08 11:10:43.929 ============== 1 failed in xxxxxS (0:01:16) ==============

python==3.7
pytest==6.2.1
pytest-rerunfailures==12.0
pytest-xdist==3.5.0

If you could give me more help?

@icemac
Copy link
Contributor

icemac commented Mar 8, 2024

Which other pytest plug-ins do you have installed?

@yeego1
Copy link
Author

yeego1 commented Mar 8, 2024

Which other pytest plug-ins do you have installed?

Yes

allure-pytest==2.8.6
pytest==6.2.1
pytest-assume==2.2.1
pytest-forked==1.1.3
pytest-html==2.1.0
pytest-metadata==1.8.0
pytest-ordering==0.6
pytest-rerunfailures==12.0
pytest-xdist==3.5.0
pytest-dependency==0.5.1
pytest-timeout==2.1.0

@icemac
Copy link
Contributor

icemac commented Mar 11, 2024

@yeego1 See #99 for a possible solution.

Please report back wether that helped.

@yeego1
Copy link
Author

yeego1 commented Mar 12, 2024

@yeego1 See #99 for a possible solution.

Please report back wether that helped.

I tried the workaround and none of it worked, but I did it by lowering the reruns version to 9.1.1

@icemac
Copy link
Contributor

icemac commented Mar 13, 2024

So the breaking change has to be in 9.1.1...10.0 - if version 10.0 also does not work.

I am here to maintain the project, so I will not dive into the diff to find the issue.

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