SolidityIn
All modules

Testing

Testing with Foundry

Tests are not optional for smart contracts, because deployed code cannot be patched and bugs can cost real money.

Testing reverts, events and cheatcodes

Good tests check failures as well as success.