Test-First Development

Definintions

API - Application Program Interface - software to software

Stub definitions - a minimal incorrect function that compiles, is used as a placeholder

Overview

When developing software is a test-first manner, then the workflow for writing code is as follows:

  1. Design the API of your code. In C++ this often involve writing function declarations in header files.
  1. Implement stub definition(s) for that API. In C++ this often involves writing function definitions in '.cpp' files.
  1. Write automated tests for that API. In this module, this will involve writing test cases using the Boost UTF.
  1. Implement definitions for the API that meet the functional requirements. This involves replacing the stub definitions with implementations that pass the tests.

Depending on the type of test-first development you are employing, you might either: