Content pfp
Content
@
https://opensea.io/collection/evm-6
0 reply
0 recast
2 reactions

Jem pfp
Jem
@jem
Writing tests with Forge on a new codebase, and two approaches have significantly (IMO) increased readability and simplicity: 1. One function per test file 2. Contract and parameter state altered through modifiers, e.g. ``` function test_foo() external whenParameterIsSet whenAModuleIsInstalled ```
2 replies
0 recast
2 reactions

G 📸 pfp
G 📸
@gr
Been slowly moving to BTT, the one file per function feels like overkill for smaller checks though https://x.com/paulrberg/status/1682346315806539776?s=46&t=0FLFA-Rcngh6xG6Bfm626g
1 reply
0 recast
0 reaction

Jem pfp
Jem
@jem
Smaller functions I tend to combine into a single file. wrt BTT, I found the tooling aspect of it cumbersome. A checklist of TODOs and Github Copilot works really well: https://warpcast.com/jem/0x3c8dcaf5
0 reply
0 recast
0 reaction