Skip to content

QuizNot attempted

FIRST principles of unit testing

In the FIRST principles, what does the I stand for, and what does it rule out?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • Isolated: tests don't depend on each other or on shared mutable state, so they can run in any order or in parallel
  • FIRST is Fast · Isolated · Repeatable · Self-validating · Timely
  • Isolated means no test depends on another or on shared mutable state, so order and parallelism don't matter.
  • Not Integrated: hitting real APIs makes tests slow and non-repeatable.
  • Not Immutable: tests change the DOM all the time, they just clean up.
  • Not Incremental after shipping: that contradicts Timely (written alongside the code).