chore: rerun failures enabled

This commit is contained in:
Anastasiya Semenkevich 2024-02-29 19:24:57 +03:00 committed by Anastasiya
parent 53f0fd1fa0
commit dd2a2f132c
3 changed files with 4 additions and 4 deletions

View File

@ -151,9 +151,9 @@ pipeline {
passwordVariable: 'TESTRAIL_PSW' passwordVariable: 'TESTRAIL_PSW'
) )
]) { ]) {
/* Keep the --reruns flag first, or it won't work */
sh """ sh """
python3 -m pytest ${flags.join(" ")} \ python3 -m pytest --reruns=1 ${flags.join(" ")} \
--ignore-flaky \
--disable-warnings \ --disable-warnings \
--alluredir=./allure-results --alluredir=./allure-results
""" """

View File

@ -5,7 +5,7 @@ log_cli = true
log_cli_level = INFO log_cli_level = INFO
log_cli_format = %(asctime)s.%(msecs)03d %(levelname)7s CLI %(name)s %(message).5000s 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 = markers =
critical: Critical checks for every PR critical: Critical checks for every PR

View File

@ -8,6 +8,6 @@ atomacos==3.3.0; platform_system == "Darwin"
allure-pytest==2.13.2 allure-pytest==2.13.2
testrail-api==1.12.0 testrail-api==1.12.0
pyperclip==1.8.2 pyperclip==1.8.2
pytest-rerunfailures==11.1.2 pytest-rerunfailures==13.0
pytest-ignore-flaky==2.1.0 pytest-ignore-flaky==2.1.0
pytest-timeout==2.2.0 pytest-timeout==2.2.0