Skip to content

Commit c612a67

Browse files
committed
chore: rerun flaky tests
There are a number of tests which can be flaky due to internal connections. Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent 0dda3f3 commit c612a67

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ example = [
104104
"protobuf~=6.0",
105105
"pydantic~=2.0",
106106
"pytest-cov~=7.0",
107+
"pytest-rerunfailures~=16.0",
107108
"pytest~=9.0",
108109
"testcontainers~=4.0",
109110
"uvicorn[standard]~=0.0",
@@ -134,6 +135,7 @@ example-v2 = [
134135
"fastapi~=0.0",
135136
"flask[async]~=3.0",
136137
"pytest-cov~=7.0",
138+
"pytest-rerunfailures~=16.0",
137139
"pytest~=9.0",
138140
"testcontainers~=4.0",
139141
"uvicorn[standard]~=0.0",
@@ -143,6 +145,7 @@ test-v2 = [
143145
"httpx~=0.0",
144146
"mock~=5.0",
145147
"pytest-cov~=7.0",
148+
"pytest-rerunfailures~=16.0",
146149
"pytest~=9.0",
147150
"uvicorn[standard]~=0.0",
148151
]
@@ -290,6 +293,9 @@ addopts = [
290293
"--cov-config=pyproject.toml",
291294
"--cov-report=xml",
292295
"--cov=pact",
296+
# Reruns
297+
"--reruns=5",
298+
"--rerun-except=AssertionError",
293299
]
294300

295301
asyncio_default_fixture_loop_scope = "session"

0 commit comments

Comments
 (0)