Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to repeat tests #576

Merged
merged 2 commits into from
Jan 31, 2023
Merged

Add option to repeat tests #576

merged 2 commits into from
Jan 31, 2023

Conversation

tezc
Copy link
Collaborator

@tezc tezc commented Jan 24, 2023

1- First commit adds --repeat option to pytest, to run a test 10 times:
pytest test.py --repeat 10

2- Second commit adds a github action argument for the daily build,
we can set additional pytest args from Github:
-k lua --repeat 10 : If test name matches lua, run it 10 times.

This is useful when we want to run a test many times to reproduce an issue or to fix a flaky test.

@tezc tezc merged commit 5c9c838 into RedisLabs:master Jan 31, 2023
@tezc tezc deleted the repeat-tests branch January 31, 2023 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants