🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Fast
  2. B.Timely
  3. C.Self-validating
  4. 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 →