4 ms·
Isn’t this basically fuzzing? Making sure it works at the business domain level is another thing entirely.
by hughrr 5y ago
Isn’t this basically fuzzing?
Making sure it works at the business domain level is another thing entirely.
- matsemann 5y agoNot exactly fuzzing, no. Most tests are written with a fixed date, or now(). Instead, using now()+delta can help discover future bugs and give you some time to remedy the issue. Often annoying to write tests like that, though, without them breaking for unrelated/timing issues compared to a fixed value.
- fragmede 5y agonot especially. Fuzzing would be running the software with an API to test all of the possible dates.
- jacquesm 5y agoNo, that's exhaustive testing. This is fuzzing: https://en.wikipedia.org/wiki/Fuzzing https://en.wikipedia.org/wiki/Fuzzing
- azernik 5y agoA date 6 months in the future is not invalid or off; it is a normal input that the program is expected to receive in the future. Fuzzing would be testing the date parser by passing it '25-44-2021' to see what breaks.
- jacquesm 5y agoIndeed. But you probably meant to address the parent, rather than my comment.
- azernik 5y agoBlerp
- pimlottc 5y agoFuzzing inputs don’t necessarily have to be invalid, just dynamically generated in order to probe program states not normally exercised by manually generated test data. Per Wikipedia: “providing invalid, unexpected or random data as inputs”
- chmod600 5y agoIf you expect your software to exist in 6 months, then the input is entirely expected, and therefore not fuzzing. It's a nice early-warning system for Y2K or Y2038-like problems.