Skip to content

Commit 582b6e5

Browse files
authored
rerun failing tests (#116)
* prepare for reruns * delay after failure * mark unstable
1 parent a66d451 commit 582b6e5

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Pipfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ pypom = "*"
1616
jsonpath-ng = "*"
1717
pillow = "*"
1818
pyfxa = "*"
19+
pytest-rerunfailures = "*"
1920

2021
[dev-packages]
2122
werkzeug = "*"

ci_pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ markers = [
1616
testpaths = [
1717
"tests"
1818
]
19-
addopts = "-vs --ci -m 'not incident and not unstable' --html=artifacts/report.html"
19+
addopts = "-vs --ci --reruns 2 --reruns-delay 1 -m 'not incident and not unstable' --html=artifacts/report.html"
2020

2121
[tool.ruff]
2222
target-version = "py310"

tests/address_bar_and_search/test_sap_google_adclick.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import time
22

3+
import pytest
34
from selenium.webdriver import Firefox
45

56
from modules.browser_object_navigation import Navigation
@@ -8,6 +9,7 @@
89
from modules.util import Utilities
910

1011

12+
@pytest.mark.unstable
1113
def test_sap_google_adclick(driver: Firefox):
1214
"""
1315
C1365108, Test SAP Google adclick - URL bar - US

0 commit comments

Comments
 (0)