foundry icon indicating copy to clipboard operation
foundry copied to clipboard

feat: fuzz failure persistence

Open mds1 opened this issue 2 years ago • 0 comments

Component

Forge

Describe the feature you would like

https://github.com/foundry-rs/foundry/issues/991 was closed by https://github.com/foundry-rs/foundry/pull/1658, but as documented by this comment there's some other related work, so pulling that into separate issues.


Right now fuzz failures are only shown in the terminal, and there's no easy way to persist persist failures to allow saving them and easily re-running them.

  • Enable FailurePersistance to /cache/fuzz/failures-latest.json.
  • Add foundry.toml flag to specify outdir.
  • Ensure proptest can use FailurePersistance to resume fuzz campaigns.
  • Add --fuzz-input-file to allow user to specify a failures.json

Additional context

No response

mds1 avatar Aug 02 '22 15:08 mds1