An introduction to Unit Tests (UT), Mocks, Integration Tests (IT), End-to-end Tests (E2E).
Say that you want to learn how to drive. π
[1/9]
At home, you have a car simulator.
Your Unit Tests will be:
πΈhow to turn on the car
πΈhow to speed up
πΈhow to slow down
πΈwhat to do with a red light
You are not using a real car, but a simulator. This is your *mock*.