From b7cfed428eb8b52297e72473d7da37bea94b5c3c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 1 May 2024 00:32:11 +0100 Subject: [PATCH] Add daily email for 2024-04-28 --- source/_daily_emails/2024-04-28.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 source/_daily_emails/2024-04-28.md diff --git a/source/_daily_emails/2024-04-28.md b/source/_daily_emails/2024-04-28.md new file mode 100644 index 000000000..cd7090aa4 --- /dev/null +++ b/source/_daily_emails/2024-04-28.md @@ -0,0 +1,15 @@ +--- +title: Replicating a bug with a test +date: 2024-04-28 +permalink: archive/2024/04/28/replicating-a-bug-with-a-test +tags: + - software-development + - automated-testing +cta: ~ +snippet: | + When fixing a bug, do you try to replicate it with a test? +--- + +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.