---
title: "Discussion on \"Make your tests cleaner using the Fixture Pattern\" | Hashnode"
description: "Discussion on \"Make your tests cleaner using the Fixture Pattern\". Every unit test has an arrangement step where we set up the test preconditions. In this step, we often need to provide some input objects to the subject under test.\nProviding these objects can become pretty verbose and painful to write. Let's see som..."
url: "https://hashnode.com/posts/2022-02-01-make-your-tests-cleaner-using-the-fixture-pattern/61f9e752e0502911a6f11258"
---

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

Discussion

# [Make your tests cleaner using the Fixture Pattern](https://policiano.com/2022-02-01-make-your-tests-cleaner-using-the-fixture-pattern?utm_source=hashnode&utm_medium=feed)

Every unit test has an arrangement step where we set up the test preconditions. In this step, we often need to provide some input objects to the subject under test. Providing these objects can become pretty verbose and painful to write. Let's see som...

Feb 2, 2022 · 4 min read · policiano.com  
Read the article

-   [#testing](https://hashnode.com/tag/testing)
-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#swift](https://hashnode.com/tag/swift)
-   [#ios](https://hashnode.com/tag/ios)
-   [#design-patterns](https://hashnode.com/tag/design-patterns)

## Written by

[Will Policiano](https://hashnode.com/@policiano)

@policiano

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

iOS Developer | Clean Architect

## Responses 1

Markdown supported · ⌘↵ to post

[Miki Szeles](https://hashnode.com/@mszeles)

[Feb 6, 2022](https://hashnode.com/posts/2022-02-01-make-your-tests-cleaner-using-the-fixture-pattern/61f9e752e0502911a6f11258/comment/620011273a8a6e5fe1197e27)

Great article Policiano.
