Testing · Senior · Question 7 of 75
What is the classical vs mockist (London school) TDD difference?
- ✓Correct answer: Classical uses real objects and verifies state; mockist mocks all collaborators and verifies interactions
- 2Classical writes tests after the code, mockist before
- 3Mockist TDD doesn't use assertions
Explanation
Mockist tests couple to the call structure and break on refactoring; classical tests can fail in several places for one bug.