Testing · Junior · Question 1 of 78
What is the main goal of automated tests?
- ✓Correct answer: To give confidence that the code works and keeps working after changes
- 2To prove that the code has no bugs at all
- 3To replace code review
Explanation
Tests can show the presence of bugs, not their absence. Their value is fast feedback and safe refactoring: if behaviour breaks, a test fails before users notice.