Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A unit test is a way to of testing a unit - the smallest piece of code that can be logically isolated in a system. In most programming languages, that is a function, a subroutine, a method or property. The isolated part of the definition is important. In his book “Working Effectively with Legacy Code”, author Michael Feathers state that such tests are not unit tests when they rely on external system:

...