From 790af966d9998c892e52ab425bd348b1b15246fe Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 6 Nov 2024 00:37:34 +0000 Subject: [PATCH] Add daily email for 2024-11-05 Keep your test suite passing --- source/_daily_emails/2024-11-05.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 source/_daily_emails/2024-11-05.md diff --git a/source/_daily_emails/2024-11-05.md b/source/_daily_emails/2024-11-05.md new file mode 100644 index 000000000..b02cbb6e4 --- /dev/null +++ b/source/_daily_emails/2024-11-05.md @@ -0,0 +1,24 @@ +--- +title: Keep your test suite passing +date: 2024-11-05 +permalink: daily/2024/11/05/keep-your-test-suite-passing +tags: + - software-development + - test-driven-development + - automated-testing +cta: ~ +snippet: | + Is your test suite passing? If not, what value is it providing? +--- + +I once joined a project that had some automated tests and quality checks which were run automatically in a CI pipeline whenever code was pushed. + +The problem was that one of the checks were failing which caused the pipeline to fail. + +Because it was failing, it was ignored. + +But if it's already failing and being ignored, how do you know you haven't broken something unexpectedly? + +This is the value you get from automated tests that are run regularly, but if failures are being ignored, they aren't adding value or confidence the code works. + +In the end, it was a small fix to get the tests and CI pipeline passing again and we made sure to keep it passing as much as possible once it was.