From dd2a2f132cc19074f4ef30539452bb75c5835bd7 Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Thu, 29 Feb 2024 19:24:57 +0300 Subject: [PATCH] chore: rerun failures enabled --- test/e2e/ci/Jenkinsfile | 4 ++-- test/e2e/pytest.ini | 2 +- test/e2e/requirements.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/ci/Jenkinsfile b/test/e2e/ci/Jenkinsfile index 67579ab817..e0d37a016e 100644 --- a/test/e2e/ci/Jenkinsfile +++ b/test/e2e/ci/Jenkinsfile @@ -151,9 +151,9 @@ pipeline { passwordVariable: 'TESTRAIL_PSW' ) ]) { + /* Keep the --reruns flag first, or it won't work */ sh """ - python3 -m pytest ${flags.join(" ")} \ - --ignore-flaky \ + python3 -m pytest --reruns=1 ${flags.join(" ")} \ --disable-warnings \ --alluredir=./allure-results """ diff --git a/test/e2e/pytest.ini b/test/e2e/pytest.ini index 91dea22a01..fcec2810d3 100644 --- a/test/e2e/pytest.ini +++ b/test/e2e/pytest.ini @@ -5,7 +5,7 @@ log_cli = true log_cli_level = INFO log_cli_format = %(asctime)s.%(msecs)03d %(levelname)7s CLI %(name)s %(message).5000s -addopts = --disable-warnings -p no:logging +addopts = --reruns=1 --disable-warnings -p no:logging markers = critical: Critical checks for every PR diff --git a/test/e2e/requirements.txt b/test/e2e/requirements.txt index fa59b61665..0db3203e82 100644 --- a/test/e2e/requirements.txt +++ b/test/e2e/requirements.txt @@ -8,6 +8,6 @@ atomacos==3.3.0; platform_system == "Darwin" allure-pytest==2.13.2 testrail-api==1.12.0 pyperclip==1.8.2 -pytest-rerunfailures==11.1.2 +pytest-rerunfailures==13.0 pytest-ignore-flaky==2.1.0 pytest-timeout==2.2.0