Test-driven development

From Pearl Language
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

TDD:

  • is an approach that combines test-first development (TFD) and refactor code;
  • writes a test before it writes the code—the test in effect does double duty in that it both specifies and validates that piece of code;
  • can be used to specify detailed requirements on a just-in-time (JIT) basis throughout construction—writing the acceptance test is the documentation; a.k.a. acceptance test-driven development or behavior-driven development;
  • makes small changes to a product that do not change its semantics—in other words, refactor code is a clean-up activity that makes something better but does not add or subtract functionality;

Sources