602Course · Expert
Testing
The discipline of proving a contract works.
The discipline of proving a contract works. Unit, integration, property-based, fuzz, and mutation testing — with Foundry as the primary toolchain.
- 01
Write a unit test with Foundry.
- 02
Design a property-based test.
- 03
Set up fuzzing and mutation testing.
Prerequisites
- — Advanced Solidity.
Pacing
~4 hours.
- IModule
The pyramid
Unit, integration, property, fuzz.
A Note from the Faculty
Every serious protocol has a test suite that runs in seconds.