What is Unit Test roughly?

A piece of code that can quickly and independently verify another piece of code (a unit or subject under test)

Quick:

  • Rule of πŸ‘: under 100 milliseconds or 10 mins for the whole suite
  • This is not a guide. As long as it’s fast enough for you to be run frequently

Unit:

  • Classic school: a class or group of classes that have no shared dependencies (aka collaborators) with another unit
    β†’ Sociable Tests
  • London school: a class
    β†’ Solitary Tests

Lewis LE

#dotNET #JavaScript #developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store