From 4a03437471be77ee4d7b0ffeae2193ded43c0d71 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 12 Aug 2023 11:45:07 +0100 Subject: [PATCH] daily-email: add 2023-08-11 Everyone tests their code --- src/content/daily-email/2023-08-11.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/content/daily-email/2023-08-11.md diff --git a/src/content/daily-email/2023-08-11.md b/src/content/daily-email/2023-08-11.md new file mode 100644 index 00000000..2686843b --- /dev/null +++ b/src/content/daily-email/2023-08-11.md @@ -0,0 +1,22 @@ +--- +title: > + Everyone tests their code +pubDate: 2023-08-11 +permalink: > + archive/2023/08/11/everyone-tests-their-code +tags: + - automated-testing + - test-driven-development +--- + +No one writes code, commits it and pushes it to production without checking it works. + +Everyone tests their code, but they usually do it manually. They switch from the code to a browser or terminal, run the code and evaluate the result. + +This takes time, you need to switch contexts, and the test is only valid for that time. + +There's no guarantee it will still work in the future. + +Automated testing, however, means you can write your code and run the tests without leaving your IDE or text editor. + +The tests can also be run in the future to ensure the functionality works without needing to re-test it manually.