Skip to content

set reruns does not work #265

Open
Open

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?

Activity

  1. icemac commented on Mar 8, 2024

    @icemac
    Contributor

    Which other pytest plug-ins do you have installed?

  2. yeego1 commented on Mar 8, 2024

    @yeego1
    Author

    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

  3. icemac commented on Mar 11, 2024

    @icemac
    Contributor

    @yeego1 See #99 for a possible solution.

    Please report back wether that helped.

  4. yeego1 commented on Mar 12, 2024

    @yeego1
    Author

    @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

  5. icemac commented on Mar 13, 2024

    @icemac
    Contributor

    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

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