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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arkannis.net/general-concepts/devops/what-is-tdd-test-driven-development.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
