Including foundry fuzzed files for coverage, without duplicating tests and in reasonable time. #698
-
We referenced sabllier-v2's config files for our CI config, and noticed you didn't include fuzz files for coverage, and i assume you faced the same issue as us, of facing too much delay for running coverage for them on CI: We were thinking of ways to cover fuzzed files in CI with runs = 1 in foundry.toml, but that takes forever too, were you able to find some way to do that in CI? or you just copy their unit variant in the non-fuzzed section of your files to be able to run coverage for them successfully? The latter results in a lot of redundant test files, hence was wondering if you knew some way to do that |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Update: putting runs = 1 in foundry.toml did end up working out :)) |
Beta Was this translation helpful? Give feedback.
-
This is exactly what we wound up doing.
Are they redundant? I find it helpful to have both simple tests that show how that your functions work with specific, hard-coded values, and other fuzz tests. |
Beta Was this translation helpful? Give feedback.
Update: putting runs = 1 in foundry.toml did end up working out :))