-
Notifications
You must be signed in to change notification settings - Fork 121
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 a teardown function arg to the pedantic mode. #270
Comments
I added support for exactly this a while ago in #264. I will try to finalize the MR in the next couple of days. |
https://pytest-benchmark.readthedocs.io/en/latest/pedantic.html#reference Just to be clear, this is documented but not released yet right? |
Not yet, There will be a release this week I think. |
@ionelmc, I'd love to add with this, if more hands are needed 🤗 |
The stable release is missing crucial teardown functionality https://pytest-benchmark.readthedocs.io/en/latest/pedantic.html#reference ionelmc/pytest-benchmark#270
Thank you for this interesting pytest plugin 👍🏼
In my case I need to benchmark a function which inserts rows into a db. However, it can’t run more than once because entering the same rows again fails. At the moment I’m using pedantic with
rounds=1
anditerations=1
(as per issue #9).The pedantic mode has a
setup
argument and I think an equivalentteardown
function would be useful — I’d just delete all rows such that benchmark could run the function again.Cheers!
The text was updated successfully, but these errors were encountered: