When to use fuzz and/or concrete tests #49
AmadiMichael
started this conversation in
General
Replies: 1 comment
-
You typically want to do both. You want concrete tests to prove that the contracts work with specific values, and you want fuzz tests to test the whole gamut of input values. Concrete tests are also useful for debugging. However, if you are constrained by time, and you only have time for one category, I'd go with fuzz tests. Related: see the test categorization I have introduced in my EthCC 2023 talk: ![]() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question: On unit testing, was wondering how to decide if to use concrete testing, fuzz testing or both. Are there any set of questions/checks to ask oneself about the assumptions and expectations of a functionality when deciding if it should have fuzz or/and concrete test?
Beta Was this translation helpful? Give feedback.
All reactions