diff --git a/pyproject.toml b/pyproject.toml index c7e34ed90..b76532482 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,6 +104,7 @@ example = [ "protobuf~=6.0", "pydantic~=2.0", "pytest-cov~=7.0", + "pytest-rerunfailures~=16.0", "pytest~=9.0", "testcontainers~=4.0", "uvicorn[standard]~=0.0", @@ -134,6 +135,7 @@ example-v2 = [ "fastapi~=0.0", "flask[async]~=3.0", "pytest-cov~=7.0", + "pytest-rerunfailures~=16.0", "pytest~=9.0", "testcontainers~=4.0", "uvicorn[standard]~=0.0", @@ -143,6 +145,7 @@ test-v2 = [ "httpx~=0.0", "mock~=5.0", "pytest-cov~=7.0", + "pytest-rerunfailures~=16.0", "pytest~=9.0", "uvicorn[standard]~=0.0", ] @@ -290,6 +293,9 @@ addopts = [ "--cov-config=pyproject.toml", "--cov-report=xml", "--cov=pact", + # Reruns + "--reruns=5", + "--rerun-except=AssertionError", ] asyncio_default_fixture_loop_scope = "session"