---
title: "Discussion on \"Builder Pattern for creating Test Data\" | Hashnode"
description: "Discussion on \"Builder Pattern for creating Test Data\". Simplify mocking data using the Builder pattern. Efficiently manage changes for robust testing"
url: "https://hashnode.com/posts/builder-pattern-for-creating-test-data/64e5ae792ac3c22cd1c52052"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Builder Pattern for creating Test Data](https://kittako.hashnode.dev/builder-pattern-for-creating-test-data?utm_source=hashnode&utm_medium=feed)

Simplify mocking data using the Builder pattern. Efficiently manage changes for robust testing

Aug 23, 2023 · 4 min read · kittako.hashnode.dev  
Updated Sep 11, 2023  
Read the article

-   [#builder-pattern](https://hashnode.com/tag/builder-pattern)
-   [#swift](https://hashnode.com/tag/swift)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)
-   [#testing](https://hashnode.com/tag/testing)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)

## Written by

[Kithin Y.](https://hashnode.com/@Kithin)

@Kithin

  
[View profile](https://hashnode.com/@Kithin)

iOS & tvOS developer

I specialize in creating applications for iOS and tvOS, along with server-side applications using Vapor. I have a strong dedication to clean code and a belief that code should not work against you, but for you.

## Responses 2

Markdown supported · ⌘↵ to post

[Amit Jangirh](https://hashnode.com/@amitjangirh)

[Sep 11, 2023](https://hashnode.com/posts/builder-pattern-for-creating-test-data/64e5ae792ac3c22cd1c52052/comment/64fec59e703e32bdbc1cfc02)

Good one, will try it.

[Kithin Y.](https://hashnode.com/@Kithin)

[Sep 11, 2023](https://hashnode.com/posts/builder-pattern-for-creating-test-data/64e5ae792ac3c22cd1c52052/comment/64fec59e703e32bdbc1cfc02#reply-64fed54853e92fc339112736)

You're welcome! 😁

After you've had a chance to try it out, let me know what you think about it.

[Jon Reid](https://hashnode.com/@JonReid)

[Aug 27, 2023](https://hashnode.com/posts/builder-pattern-for-creating-test-data/64e5ae792ac3c22cd1c52052/comment/64eb8ff80370412e6782e7c7)

Nice write-up! I have found that the more complex your data, the more useful it is to have a Builder.

[Kithin Y.](https://hashnode.com/@Kithin)

[Aug 27, 2023](https://hashnode.com/posts/builder-pattern-for-creating-test-data/64e5ae792ac3c22cd1c52052/comment/64eb8ff80370412e6782e7c7#reply-64eb97390370412e6782e895)

Thank you for your compliment 😁
