Stop writing tests
summary
Argues for replacing hand-written tests with computer-generated tests by modeling behavior as finite state machines, then filling in actions and assertions and letting a tool generate tests and execute them. Uses a stopwatch example, models in mermaid/xstate, runs generated suites with xstate (and mentions GraphWalker/X8), and goes from 10 auto-generated tests to 37 after adding a missed “lap” state. Claims faster writing, easier maintenance, and better user-focused edge-case coverage when models stay simple.
AI-written summary · about
chapters (14)
- 0:00Introduction and premise
- 1:03Speaker background and testing struggles
- 2:26Problems with manual test writing
- 2:47What is model-based testing
- 3:49Creating the abstract model
- 5:32Modeling user interfaces and logic
- 7:17Tools for modeling diagrams
- 8:41Defining actions and assertions
- 10:06Generating tests from models
- 11:27Updating tests with model changes
- 13:56Summary of three-step process
- 14:16Challenges of model-based testing
- 14:57Benefits of model-based testing
- 16:02Future of automated testing
