Property Based Testing - Smart testing of smart contracts
summary
Uses graphical contract models to generate on-chain code and applies stateful property-based testing to validate both code generation and runtime behavior. Builds a generator + test harness that exercises randomized command sequences against deployed contracts and CI, discovers over 20 unexpected failing traces (including reentrancy-like state regressions and incorrect postconditions), and integrates the checks into deployment pipelines so generated contracts fail fast rather than reaching production.
AI-written summary · about
chapters (8)
- 0:00Property based testing intro
- 4:20Unit testing limits for contracts
- 11:23Core principles
- 17:56Property based testing in blockchain applications
- 26:14Implementing property based testing frameworks
- 33:25State machines with PBT
- 42:24Real-world PBT impact
- 48:50Q&A
related talks
25mBehavioral simulation for smart contracts
41mPython Unittesting for Ethereum Smart Contracts or how not to create your own Crypto
37mAuthoring and Formal Verification of Smart Contracts in Pact
45mFunctional Smart Contracts
27mBreak It Yourself
33mAudit-Driven Signature Tracing for Smart Contract Safety
21mFrom High-Level DeFi Properties to Concrete Security Bugs
48mD1T2 - Smashing Ethereum Smart Contracts for Fun and ACTUAL Profit
