-
Notifications
You must be signed in to change notification settings - Fork 27
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
Repeat decorator #16
Comments
I see you opened #16 already - I think this definitely should go to that plugin rather than pytest core. |
Argh! Nevermind me. I thought this was the core repository, my bad! 😆 |
Do we have this repeat decorator? |
no |
any plans to bring it in? |
This is all voluntary work, so if nobody steps up, nothing will happen 😉 Help welcome! |
If anyone wants to tackle this, it should be just a matter of changing this part of the code: pytest-repeat/pytest_repeat.py Lines 38 to 39 in 3d6230e
To also get the mark from the def pytest_generate_tests(metafunc):
count = metafunc.config.option.count
mark = metafunc.function.get_closest_mark('repeat')
if mark:
count = mark.args[0]
... Plus tests and update the README. (all the above is untested, but it shouldn't be far off) |
Sure, let me try doing this and create a PR. Thanks. |
See #22. @shreyashah Hope you do not mind. 😊 |
@Peque : Oh absolutely, no! Thank you for bringing this in. I had this in my local env, but pushed to open a PR. |
Is it currently possible to mark a test with a decorator to be run multiple times?
In example:
So when executing
pytest
only the tests that are marked with the decorator are run multiple times.The text was updated successfully, but these errors were encountered: