Converting E2E tests to model-based tests: faster runs, more bugs found

DavidKPiano · x · 2026-11-24

Responding to Jose Valim's case for model-based testing (MBT), David Khourshid reports first-hand results converting a batch of existing E2E tests to model-based tests, using their transition sequences to build the model. A single walk covers multiple E2E tests, coverage improved, and it surfaced bugs the original tests missed; thoroughness is tunable via path generation strategy. He concludes PBT and MBT are complementary, and @xstate/test uses them together.

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 →