pytest-robotframework icon indicating copy to clipboard operation
pytest-robotframework copied to clipboard

tests always executed twice when the flaky plugin is active

Open likair opened this issue 1 year ago • 5 comments

After install pytest_robotframework, the Pytest test case is executed twice as it shows below:

image

likair avatar Sep 05 '24 20:09 likair

Looks like it's related to #1?

likair avatar Sep 05 '24 20:09 likair

can you provide some more info please:

  • what version of pytest-robotframework are you using
  • what version of pytest
  • any other pytest plugins you have installed
  • what command are you using to run the test

thanks

DetachHead avatar Sep 05 '24 21:09 DetachHead

platform linux -- Python 3.10.14, pytest-7.0.0, pluggy-1.5.0

metadata: {'Python': '3.10.14', 'Platform': 'Linux-5.15.133.1-microsoft-standard-WSL2-x86_64-with-glibc2.36', 'Packages': {'pytest': '7.0.0', 'pluggy': '1.5.0'}, 'Plugins': {'xdist': '3.0.2', 'html': '4.1.1', 'flaky': '3.7.0', 'pytest_robotframework': '4.2.4', 'allure-pytest': '2.13.5', 'anyio': '4.4.0', 'metadata': '3.1.1', 'timeout': '2.1.0'}}

plugins: xdist-3.0.2, html-4.1.1, flaky-3.7.0, pytest_robotframework-4.2.4, allure-pytest-2.13.5, anyio-4.4.0, metadata-3.1.1, timeout-2.1.0

addopts = "-v --capture=tee-sys --html=results/report.html --self-contained-html --junitxml=results/report.xml --alluredir allure-results"

likair avatar Sep 06 '24 05:09 likair

looks like it's the flaky plugin

DetachHead avatar Sep 07 '24 01:09 DetachHead

i haven't tested it extensively but this plugin seems to work, so as a workaround you could maybe use that one instead

DetachHead avatar Sep 22 '25 05:09 DetachHead