Testing · Junior · Question 68 of 78
What is a flaky test?
- ✓Correct answer: A test that sometimes passes and sometimes fails without code changes
- 2A test that always fails
- 3A test without assertions
Explanation
Common causes: timing and race conditions, shared state, real network, current time. Flaky tests destroy trust in the suite.