Re:Avoiding Test-Case Permutation Blowout
by randomdata on Wednesday September 04, 2024 @02:34PM
(#41448965)
> I'd reach for hypothesis testing/fuzzing.
These tend to be not so great at documenting intent and usage, though, which is the primary goal of your tests. Generally, I'd reach for both – offering a limited number of clearly defined tests to demonstrate common usage to future readers, while letting the fuzzing, etc. sort out the rest.
In the former, truth-table testing doesn't really add much value, and in the latter, I'd reach for hypothesis testing/fuzzing.
That said, writing exhaustive truth-table test doesn't look so bad with table-driven tests, like: