> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/general-concepts/devops/what-is-tdd-test-driven-development.md).

# 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 %}
