--gas-report taking infinite time with invariant tests
sakulstra opened this issue · 1 comments
sakulstra commented
Component
Forge
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
forge 0.2.0 (d14a7b4 2024-11-24T00:24:44.637144000Z)
What command(s) is the bug in?
forge test --gas-report
Operating System
macOS (Apple Silicon)
Describe the bug
When running gas report on a repo with invariant tests it will not finish.
Running forge test
takes 2min, running forge test --gas-report
i cancelled after 4h.
I sadly cannot share our reproduction is it's still private, but i think the issue is likely similar to fuzz-runs.
While on gas-report one can dramatically improve the time by supplying --fuzz-runs 1
or similar, i don't see a way to do the same with invariant tests.
sakulstra commented
actually nvm, sorry i think the problem is sth different