Closed stefannibrasil closed 4 months ago
Let me try it.
awesome, thank you!
So there are two approaches I see here,
skip_during
will yield and ensure it's set to false after)? This makes it easy to turn it on/off for individual tests, depending on what we want to assert?@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 skip
block. If we add the block is because we know the test will generate the warning but there's nothing we can do until the generator is removed/updated, if that makes sense.
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.