# What is TDD? (Test Driven Development)

#### The tests are written before the code itself

#### TDD Goals

* Know when something breaks and where
* Know that the whole system works correctly

#### Workflow:

1. Chose something to work on
2. Build it based on specifications
3. Test it with small scripts

#### Workflow WITH TDD:

1. Chose something to work on
2. Write tests that would pass if products work
3. Keep building until all tests pass

{% hint style="info" %}
**The results are the same regardless of method - TDD forces you to prioritize tasks**
{% endhint %}
