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

Rerun count doesn't increase, it still count in FAILED #212

Open
SimonChou-17LIVE opened this issue Apr 7, 2022 · 0 comments
Open

Rerun count doesn't increase, it still count in FAILED #212

SimonChou-17LIVE opened this issue Apr 7, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@SimonChou-17LIVE
Copy link

SimonChou-17LIVE commented Apr 7, 2022

Hello @prashanth-sams

Firstly, thanks for you to develop such a wonderful automation reporting, it's amazing.

But I meet a situation, when I run my pytest script, the fail item will rerun, but the rerun count doesn't increase.
Conversely, increasing the number of failures

I am use pytest-rerunfailures tools, and add the code "@pytest.mark.flaky(reruns=5, reruns_delay=2)" on test function
My test code like as below

test_addreprot.py

import pytest, unittest

class MainTest(unittest.TestCase):

    @pytest.mark.flaky(reruns=5, reruns_delay=2)
    def test_001(self):
        assert 1 == 2


if __name__ == "__main__":
    cmd = ["-v", "-s"]  # debug on local
    cmd.append("--html-report=report.html")

    pytest.main(cmd)

excute method: python3 test_addreprot.py

@prashanth-sams prashanth-sams self-assigned this Apr 9, 2022
@prashanth-sams prashanth-sams added this to the 0.3.0 milestone Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants