DavidKPiano makes the case for model-based testing: generate tests from state machines

DavidKPiano · x · 2026-11-24

David Khourshid introduces model-based testing (MBT) with a new Stately tutorial. Unlike formal verification, which proves logic matches a spec, MBT checks the app actually follows it: a state machine lets the runner generate event sequences covering paths hand-written E2E tests miss. Best when event order matters; costs include model authoring, app resets, assertions, and CI time. XState makes it easy.

Related event: David Khourshid and José Valim discuss model-based testing over formal verification(5 posts)→

Original post →

More from coding & agent

coding & agent channel →