Quantcast
Channel: Sustainable Test-Driven Development
Viewing all articles
Browse latest Browse all 46

The Importance of Test Failure

$
0
0
The typical process of Test-Driven Development goes something like this: Write a test that expresses one required behavior of the system. Create just enough production code (a “stub”) to allow the test to compile, and fail. Run the test and watch it fail (red). Modify the production code just enough to allow the test to pass. Run the test and watch it pass (green). Refactor the production code

Viewing all articles
Browse latest Browse all 46

Trending Articles