← Quiz: Unit Testing and TDD: all 10 questions
Quiz: Unit Testing and TDD · Question 8 of 10
A unit test passes on the developer's laptop but fails on the CI server at midnight because it uses today's date. Which…
A unit test passes on the developer's laptop but fails on the CI server at midnight because it uses today's date. Which FIRST property does it break?
- A.Fast
- B.Timely
- C.Self-validating
- D.Repeatable
Answer & explanation
Correct answer: Repeatable
Tests should give the same result every run; control the clock instead of reading the real one.
Can you get the rest right without peeking?
Take the timed Quiz: Unit Testing and TDD quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →