-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 silence deprecation warnings when running the tests #2948
Comments
Let me try it. |
awesome, thank you! |
So there are two approaches I see here,
@stefannibrasil Lmk what you think. |
hi @keshavbiswa thanks for working on this. Yeah, number 1 seems to be what we need. We want to be able to skip the output when explicitly adding a |
We have recently introduced an internal deprecator for faker. See #2858 and #2919 for more details.
We'd like to have the option to skip printing out the deprecation warnings when running the tests. Currently, we get a long test output due to them.
Ruby's Deprecate gem has the option to wrap a test assertion in a skip_during block, intended to be used in the test suite only:
It would be nice if we could have a similar option for our custom deprecator so our test output is not filled with those deprecation messages while they are being removed.
The text was updated successfully, but these errors were encountered: