-
Notifications
You must be signed in to change notification settings - Fork 16
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
Improvements to Foundry Documentation #317
Conversation
docs/cvl/foundry-integration.md
Outdated
the expected one, the test will still be marked as successful. | ||
|
||
- The call trace for the Foundry integration can be hard to read as it is internally implemented as a parametric CVL rule with case splitting on the method `.selector` of each method. This leads to the call trace containing an `if` statement per fuzz test method. When focusing on a particular test it is helpful to use the `--method <FUZZ_TEST_METHOD_NAME>` [flag](https://docs.certora.com/en/latest/docs/prover/cli/options.html#method-method-signature). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be very helpful if we can show an example of the problem and how to resolve it:
- An exemplary Foundry test Solidity file with two simple and short tests
- A screenshot of the call trace of these tests showing the parametric rule
- A command line example showing how to focus on the results of a single test
As is, it is hard to understand the text, and our users always complain that there are not enough examples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback - I added screenshots and links to existing jobs to clarify what we mean here. @urikirsh please re-review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Some small comments
Co-authored-by: urikirsh <[email protected]>
Co-authored-by: urikirsh <[email protected]>
Co-authored-by: urikirsh <[email protected]>
This PR adds some information to the foundry integration to clarify simplification on how to use it.