Testing · Senior · Question 6 of 75
What is the difference between solitary and sociable unit tests?
- ✓Correct answer: Solitary replace all collaborators with doubles; sociable use real collaborators and mock only slow or external ones
- 2Solitary run in their own process, sociable share one
- 3Sociable tests are written in pairs
Explanation
Sociable tests survive refactoring better; solitary tests localize failures more precisely.