Skip to content

Commit 3b6e0ce

Browse files
committed
test: enable pytest-rerunfailures for unittests
1 parent d442e0c commit 3b6e0ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hatch.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies = [
1818
"pytest",
1919
"pytest-html",
2020
"pytest_asyncio>=0.23",
21-
# "pytest-regtest>=1.5.0",
21+
"pytest-rerunfailures",
2222
"pytest-cov",
2323
"mypy",
2424
"ruff",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ extend-exclude = '''
137137

138138
[tool.pytest.ini_options]
139139
minversion = "6.0"
140-
addopts = "-ra -vv -rf --ignore=bundled --ignore=.hatch"
140+
addopts = "-ra -vv -rf --ignore=bundled --ignore=.hatch --reruns 5 --reruns-delay 1"
141141
filterwarnings = "ignore:.*Using or importing the ABCs from 'collections' instead of from 'collections.abc'.*:DeprecationWarning"
142142
testpaths = ["tests"]
143143
junit_suite_name = "robotcode"

0 commit comments

Comments
 (0)