meta(cheatcodes): tracking issue for cheatcode improvements #4439
Labels
A-cheatcodes
Area: cheatcodes
C-forge
Command: forge
Cmd-forge-test
Command: forge test
T-meta
Type: meta
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: feat(cheatcodes): add negative assertions forexpectEmit
andexpectRevert
usingcount
syntax #509 — potential alternative UX is mockCall count #4513cheatcodes
): show detailed reverts regardless of verbosity level defined #928expectRevert
issues:vm.expectRevert
#3437vm.expectRevert
without external call makesassertEq
pass #4832Assertion failed.
when reverting to a fork snapshot, without any assertion #3792, bug: snapshot/revertTo causes tests to pass unexpectedly #3055 (comment)Medium Priority
expect*
cheats should only apply to the next call: bug: expectEmit and expectCall don't only check the next call #1745forge test
/forge script
: throw when ffi fails #2932vm.confirmContinue
cheat code #2399cheatcodes
): ability to capture and store state diffs #2846cheatcode
): addvm.waitForTransaction
for getting tx and receipt info in scripts #3589rpc
cheatcode: integrate cast rpc as cheatcode #3362vm.skipTest(bool)
cheat: Function Modifier or an Opcode to mark a test as skipped conditionally #1123cheatcodes
): addvm.delegatePrank
to execute adelegatecall
in the context of the pranked address #824 (comment)vm.expectRevert
#4762vm.canRevert()
: allow tests to revert in expected cases #4090vm.storeTransient
andvm.loadTransient
#8165Lower Priority
vm.assertContains
with overloads (String, etc..) #4859vm.cool
cheatcode #1340mockCall
not working as expected #432,expectRevert
cheat code doesn't work for internal calls #864,vm.prank
design comment #1454), such asprank
,mockCall
,expect*
cheatcodes
): support partial matching of custom errors in reverts #3725vm.mineSalt
cheat code #2359cheatcodes
): support additional cheatcodes to aid in symbolic testing #4072Additional context
No response
The text was updated successfully, but these errors were encountered: