This issue tracks general cheatcode improvements. Items are roughly ordered by my opinion of priority, both at the header-level and the bullet-level. I say "roughly ordered" because some items are much bigger scope than others so having a strict ordering doesn't make much sense.
It's a subtle cause for failing tests, which can result in long-winded debugging sessions.
For complex code bases with many test contracts, it is frustrating to have to ensure that certain dummy contracts are never considered for reverts. The refactors required to skirt around this limitation can be non-trivial.
Component
Forge
Describe the feature you would like
This issue tracks general cheatcode improvements. Items are roughly ordered by my opinion of priority, both at the header-level and the bullet-level. I say "roughly ordered" because some items are much bigger scope than others so having a strict ordering doesn't make much sense.
Refactors, Higher Priority
vm.exect*
cheats: https://github.com/foundry-rs/foundry/issues/509 — potential alternative UX is https://github.com/foundry-rs/foundry/issues/4513expectRevert
issues:Medium Priority
expect*
cheats should only apply to the next call: https://github.com/foundry-rs/foundry/issues/1745vm.skipTest(bool)
cheat: https://github.com/foundry-rs/foundry/issues/1123Lower Priority
prank
,mockCall
,expect*
Additional context
No response