You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
excute method: python3 test_addreprot.py
The text was updated successfully, but these errors were encountered: