model-based-testing-tutorial
model-based-testing-tutorial copied to clipboard
Model Based Testing Tutorial
Lessons
- Basic MBT UI Tests
- Using Test Machine Context to repeat paths
- Using Test Machine Context to explore non-shortest paths
- Testing Asynchronous Services
- Model Based Testing the State Machine
- Bonus - Freestyle
First Steps
Install dependencies npm i
Completing the Tutorial
The tutorial is laid out in individual lessons.
The recommend way to complete the tutorial is to
- Update
App.tsxto importOrderfrom the current lesson folder - Run the program using
npm startto visualize the UI - Familiarize yourself with the lesson's Order Component
- Try to complete the instructions in
Order.test.tsxand successfully cover all tests - Compare your results with the answers at
Order_Final.test.tsx - Repeat with the next lesson
Note that L5 is just the machine, no UI.