| ▲ | vlovich123 a day ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Either your code shouldn’t fail or the apostrophe isn’t a valid case. In the former, hypothesis and other similar frameworks are deterministic and will replay the failing test on request or remember the failing tests in a file to rerun in the future to catch regressions. In the latter, you just tell the framework to not generate such values or at least to skip those test cases (better to not generate in terms of testing performance). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ▲ | reverius42 a day ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I think what they meant is, "won't Hypothesis sometimes fail to generate input with an apostrophe, thus giving you false confidence that your code can handle apostrophes?" I think the answer to this is, in practice, it will not fail to generate such input. My understanding is that it's pretty good at mutating input to cover a large amount of surface area with as few as possible examples. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||