Testing · Junior · Question 74 of 78
What should a single test ideally check?
- ✓Correct answer: One behaviour or scenario (it may still contain several related assertions)
- 2Exactly one
expect, never more - 3Everything the component can do, to save time
Explanation
One scenario per test makes failures easy to understand. Several assertions about the same result are fine.