oliverdavies.uk/source/_daily_emails/2024-04-28.md

16 lines
495 B
Markdown
Raw Permalink Normal View History

2024-04-30 23:32:11 +00:00
---
title: Replicating a bug with a test
date: 2024-04-28
permalink: daily/2024/04/28/replicating-a-bug-with-a-test
2024-04-30 23:32:11 +00:00
tags:
2024-09-08 22:09:54 +00:00
- software-development
- automated-testing
2024-04-30 23:32:11 +00:00
cta: ~
snippet: |
2024-09-08 22:09:54 +00:00
When fixing a bug, do you try to replicate it with a test?
2024-04-30 23:32:11 +00:00
---
When fixing a bug, can you write a new failing test to replicate the bug?
If so, you verify the bug exists, you know when it's fixed (the test passes), and you know you won't introduce the same bug again - otherwise, the new test will fail.