> For the complete documentation index, see [llms.txt](https://hanfak.gitbook.io/workspace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hanfak.gitbook.io/workspace/testing-reading-maintaining/test-data-builder.md).

# Test Data Builders

## What

to create input data or objects for unit tests

## why

* Facilitate writing tests by allowing easy creation of inputs or expected data.
* Facilitate test maintainability by decoupling the creation of objects in tests, and isolating it in a single location (Single Responsibility Principle)
* Disseminate functional understanding in the team through the use of business terms
* Facilitate the readability of the tests by explaining only the data implied in the use case

## Links

* <https://xtrem-tdd.netlify.app/Flavours/test-data-builders>
