-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fuzz Test Snapshotting Concept #1085
Comments
related: #858 |
oh interesting @d-xo yeah seems like a lot of the functionality would be shared between them |
In practice I think we'd have to do |
yup agreed, and can have a console.log style lib as an abstraction on top |
@transmissions11 Is this worth keeping open? What is the use case for snapshotting only specific values, as opposed to concrete tests for some edge cases you may care about + deterministic seed with fuzz tests for the other cases? |
Component
Forge
Describe the feature you would like
a cheatcode or config option that lets u specify a couple of specific inputs to snapshot for a fuzz test would be a repeatable and easy way to benchmark a fuzz tests' gas usage without introducing the variance that comes from mean/medians
here's what that could look like:
with a modifier it'd be really elegant:
could also use comment annotations but i know we dont rly like those
Additional context
related to my complaints in #1081
The text was updated successfully, but these errors were encountered: