---
title: "Discussion on \"Why Do I Write Tests?\" | Hashnode"
description: "Discussion on \"Why Do I Write Tests?\". I was asked recently why I write tests for my code. This is a topic I have spent a lot of time discussing and teaching others about so I decided to write a post documenting my answers.\nStory Line\nLet’s say a QA engineer finds a bug in a web applicati..."
url: "https://hashnode.com/posts/why-do-i-write-tests/5f55659cfb6cc91069300dc1"
---

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

Discussion

# [Why Do I Write Tests?](https://blog.phillipninan.com/why-do-i-write-tests?utm_source=hashnode&utm_medium=feed)

I was asked recently why I write tests for my code. This is a topic I have spent a lot of time discussing and teaching others about so I decided to write a post documenting my answers. Story Line Let’s say a QA engineer finds a bug in a web applicati...

Sep 6, 2020 · 7 min read · blog.phillipninan.com  
Updated Mar 10, 2021  
Read the article

-   [#junit](https://hashnode.com/tag/junit)
-   [#java](https://hashnode.com/tag/java)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Phillip Ninan](https://hashnode.com/@phillip_ninan)

@phillip\_ninan · Long Island, NY

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

Senior Software Engineer

I'm a software engineer interested in Cloud technologies and web applications.

## Responses 1

Markdown supported · ⌘↵ to post

[Peter Thaleikis](https://hashnode.com/@spekulatius)

[Sep 7, 2020](https://hashnode.com/posts/why-do-i-write-tests/5f55659cfb6cc91069300dc1/comment/5f5621db8bd8da1b2a5dc0de)

Satisfaction is one of the points I've never expected to be so big for myself. Good you included it!

[Phillip Ninan](https://hashnode.com/@phillip_ninan)

[Sep 7, 2020](https://hashnode.com/posts/why-do-i-write-tests/5f55659cfb6cc91069300dc1/comment/5f5621db8bd8da1b2a5dc0de#reply-5f568378eb04b7205ad01ef1)

Thanks its a big factor for me as well!
