Model-based testing skill: state machines let agents cover every path in one walk
DavidKPiano · x · 2026-12-01
DavidKPiano added a model-based testing skill to Stately Skills: agents model app flows as state machines and Playwright tests every path. The attached charts show 3 hand-written E2E tests needing 12 steps to cover only 5/12 transitions (6/7 states), while one 15-step generated walk covers all 12 transitions and 7 states. MBT wins when event order matters; unit tests still fit isolated rules. XState v5 uses xstate/graph, v6 beta uses @xstate/test@beta, with a copy-paste prompt for coding agents.
Related event: DavidKPiano Adds Model-Based Testing Skill to Stately Skills(2 posts)→
More from coding & agent
- Same-prompt coding test: Step 5 beats DeepSeek V4.1 Flash on speed and UI polish — alifcoder · 2026-12-01
- The 30 highest-ROI AI agent use cases in large companies, ranked — vasuman · 2026-12-01
- Google Workspace MCP pricing from Feb 2027: $0.50/1K calls, tone-learning apps must strip features — nbaschez · 2026-12-01
- Google's Agent Retrieval adds managed ingestion: 18 PDFs to cited answers in ~9 minutes — rseroter · 2026-12-01
- Notion's repositioning masterclass: from workspace to AI-native company context system — ivanhzhao · 2026-12-01
- Dev shares Amp Code + Notion agent ops: nightly docs fixes, brand radar and auto Linear tickets — ivanhzhao · 2026-12-01