Skip to content

set reruns does not work #265

@yeego1

Description

@yeego1

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions