Test Driven Development

1 min. read

Test Driven Development (TDD)

Introduction to TDD

Most TDD frameworks are modeled on xUnit Framework

The core of xUnit was created by Kent Beck and Eric Gamma for Smalltalk called sUnit

xUnit Components

Test case
Test suit
Test runner
Test fixture
Test result

The iterative red-green-refactor cycle

Red - fail
Green - pass
Refactor - making sure the code doesn’t break

References
Unite Austin 2017 - Testing for Sanity: Using Unity’s Integrated TestRunner
https://www.youtube.com/watch?v=MWS4aSO7HAo