---
title: "Discussion on \"Assessing a unit test written after a bug is fixed\" | Hashnode"
description: "Discussion on \"Assessing a unit test written after a bug is fixed\". When fixing bugs I usually try to reproduce the bug with a failing unit test before fixing it, assuming the bug is within some code that can be covered by unit tests. However, occasionally I implement the fix before a test is in place, usually when I..."
url: "https://hashnode.com/posts/assessing-a-unit-test-written-after-a-bug-is-fixed/67c98ab04798f4513660318b"
---

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

Discussion

# [Assessing a unit test written after a bug is fixed](https://techblog.timhilton.xyz/assessing-a-unit-test-written-after-a-bug-is-fixed?utm_source=hashnode&utm_medium=feed)

When fixing bugs I usually try to reproduce the bug with a failing unit test before fixing it, assuming the bug is within some code that can be covered by unit tests. However, occasionally I implement the fix before a test is in place, usually when I...

Mar 6, 2025 · 1 min read · techblog.timhilton.xyz  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)
-   [#tdd](https://hashnode.com/tag/tdd)

## Written by

[Tim Hilton](https://hashnode.com/@tjhilton)

@tjhilton

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
