From 915afd487ba7c549aa141e14265adb21b0a734ab Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 6 Jul 2023 23:32:43 +0100 Subject: [PATCH] daily-email: add 2023-06-29 Tests wont tell you if your code works --- src/content/daily-email/2023-06-29.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/content/daily-email/2023-06-29.md diff --git a/src/content/daily-email/2023-06-29.md b/src/content/daily-email/2023-06-29.md new file mode 100644 index 00000000..3f53ad51 --- /dev/null +++ b/src/content/daily-email/2023-06-29.md @@ -0,0 +1,24 @@ +--- +title: > + Tests won't tell you if your code works +pubDate: 2023-06-29 +permalink: > + archive/2023/06/29/tests-wont-tell-you-if-your-code-works +tags: + - automated-testing + - test-driven-development +--- + +Having a passing test suite or CI pipeline doesn't tell you if your appliction works. + +There could be scenarios or edge-cases that aren't covered within the test suite and contain bugs, but aren't covered by the test suite. + +There could be untested code that isn't covered at all. + +A passing test suite proves that the tests that have been written so far pass and that there are no regressions introduced by the latest change. + +## Here's the thing + +Instead of telling you that your application works by passing, the test suite tells you something is broken when it fails. + +If a previously-passing test is failing, the application is broken and should not be deployed - not that the application is working if the tests don't fail.