Skip to content

Commit f729c6a

Browse files
Merge pull request #274 from supertokens/feat/add-pytest-rerunfailures
feat: Add pyest-rerunfailures to minimize impact of flasky tests
2 parents 8e81981 + 1b4edcf commit f729c6a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set-up-hooks:
1717
chmod +x .git/hooks/pre-commit
1818

1919
test:
20-
pytest ./tests/
20+
pytest --reruns 3 --reruns-delay 5 ./tests/
2121

2222
dev-install:
2323
pip install -r dev-requirements.txt

dev-requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ iniconfig==1.1.1
2828
isort==5.10.1
2929
itsdangerous==2.1.2
3030
Jinja2==3.1.1
31+
jsonschema==3.2.0
3132
lazy-object-proxy==1.7.1
3233
Mako==1.2.0
3334
Markdown==3.3.6
@@ -55,6 +56,8 @@ pyright==1.1.236
5556
pyrsistent==0.18.1
5657
pytest==6.2.5
5758
pytest-asyncio==0.14.0
59+
pytest-mock==3.8.2
60+
pytest-rerunfailures==10.3
5861
python-dotenv==0.19.2
5962
pytz==2022.1
6063
PyYAML==5.4.1
@@ -81,4 +84,3 @@ uvicorn==0.18.2
8184
Werkzeug==2.0.3
8285
wrapt==1.13.3
8386
zipp==3.7.0
84-
pytest-mock==3.8.2

0 commit comments

Comments
 (0)