---
title: "Discussion on \"What is Test Driven Development?\" | Hashnode"
description: "Discussion on \"What is Test Driven Development?\". Test Driven Development, or TDD, is a software development method where one writes the tests before the implementation."
url: "https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79"
---

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

Discussion

# [What is Test Driven Development?](https://seg.veenstra.dev/what-is-test-driven-development?utm_source=hashnode&utm_medium=feed)

Test Driven Development, or TDD, is a software development method where one writes the tests before the implementation.

Jun 15, 2022 · 5 min read · seg.veenstra.dev  
Updated Jun 26, 2022  
Read the article

-   [#tdd](https://hashnode.com/tag/tdd)
-   [#dart](https://hashnode.com/tag/dart)
-   [#flutter](https://hashnode.com/tag/flutter)
-   [#game-development](https://hashnode.com/tag/game-development)

## Written by

[Stephan E.G. Veenstra](https://hashnode.com/@SEGVeenstra)

@SEGVeenstra · The Netherlands

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

I build apps and games with Flutter!

Stephan is a Flutter Developer from The Netherlands. By day he is working on serious apps, by night he likes to play around by making games and writing about what he has learned.

## Responses 7

Markdown supported · ⌘↵ to post

[Developer Avocado](https://hashnode.com/@AvocaDEV)

[Jul 6, 2022](https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79/comment/62c5e2c560d6757393f82b9a)

Thanks for article [Stephan E.G. Veenstra](https://hashnode.com/@SEGVeenstra), informative as always 👍

[Maxi Contieri](https://hashnode.com/@mcsee)

[Jun 22, 2022](https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79/comment/62b3aa3586d22092a7547565)

Already loving this series

[Stephan E.G. Veenstra](https://hashnode.com/@SEGVeenstra)

[Jun 23, 2022](https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79/comment/62b3aa3586d22092a7547565#reply-62b45af0b86f939ac81b00ac)

Thank you! That's very kind of you to say.

[Akash Singh](https://hashnode.com/@akash940)

[Jun 19, 2022](https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79/comment/62aecf740924134a80489042)

i think their should be one more step called **Refactor**??

[Stephan E.G. Veenstra](https://hashnode.com/@SEGVeenstra)

[Jun 19, 2022](https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79/comment/62aecf740924134a80489042#reply-62af1e0fd8afe74aa51fccfd)

True, refactoring is often mentioned as a separate step (after the test passes).

Personally I don't see the point of refactoring your code while you're still implementing.

You could refactor your code after you pass the test and then when you do the next requirement realize it's not going to work, meaning you wasted time.

As I mentioned in the 'reasons', you will write code that can be refactored with confidence, but I would suggest to do this after you're done.

This is personal preference of course.

[Akash Singh](https://hashnode.com/@akash940)

[Jun 19, 2022](https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79/comment/62aecf740924134a80489042#reply-62af3ff0d8afe74aa51fd1cc)

Yup i also means to do refactor after successfully passing the test: Test -> Code -> Refactor

[omorubore oluwatobi](https://hashnode.com/@Edamijueda)

[Jun 17, 2022](https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79/comment/62abc7672b2b09182b6573b1)

Thank you.

[Shubham Kumar Singh](https://hashnode.com/@shubhamsinghbundela)

[Jun 16, 2022](https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79/comment/62ab3bae1a89c91850b1b01c)

Thank you [Stephan E.G. Veenstra](https://hashnode.com/@SEGVeenstra)

[Fueler.io](https://hashnode.com/@fueler)

[Jun 16, 2022](https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79/comment/62aaa6162b2b09182b654b27)

Thank you, Stephan for sharing this step by step guide to understand TDD

[Stephan E.G. Veenstra](https://hashnode.com/@SEGVeenstra)

[Jun 16, 2022](https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79/comment/62aaa6162b2b09182b654b27#reply-62aad5251a89c91850b19d95)

It's my pleasure!

[JAKE](https://hashnode.com/@jake5488)

[Jun 15, 2022](https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79/comment/62aa33b41a89c91850b18f39)

great article Stephan! really helpful.

[Stephan E.G. Veenstra](https://hashnode.com/@SEGVeenstra)

[Jun 16, 2022](https://hashnode.com/posts/what-is-test-driven-development/62aa28be1a89c91850b18d79/comment/62aa33b41a89c91850b18f39#reply-62aad4fb2b2b09182b6551d7)

Thank you Jonathan!
