feat(forge test
): add an option to continue fuzzing run on assertion failure
#9727
Labels
forge test
): add an option to continue fuzzing run on assertion failure
#9727
Component
Forge
Describe the feature you would like
Description:
Currently, Foundry’s invariant tests stop execution upon encountering the first assertion failure, ending the entire fuzzing campaign.
Feature Request:
Add an option to allow the fuzzing campaign to continue running until all configured runs are completed, even if assertion failures are encountered.
Rationale:
This feature would enable continuous fuzzing in an "Echidna-style" manner, where failing assertions are collected throughout the run without interrupting the campaign. Certain assertion failures require long-running fuzzing campaigns (e.g., 4+ hours), and stopping on the first failure can hinder the discovery of additional issues.
Expected Behavior:
When the
continuous_run
option is enabled, the fuzzer should:Continue running despite encountering assertion failures.
Log all failures encountered during the campaign.
Upon manual cancellation (e.g., CTRL+C/CMD+C) or completion of the configured runs/timeout, present all call traces for reproducing the assertion failures.
Example Configuration:
Example Output:
Additional context
No response
The text was updated successfully, but these errors were encountered: