{ "uuid": [ { "value": "1583ba2e-e791-4f4d-be82-4c59fe51f1b5" } ], "langcode": [ { "value": "en" } ], "type": [ { "target_id": "daily_email", "target_type": "node_type", "target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7" } ], "revision_timestamp": [ { "value": "2025-05-11T09:00:38+00:00" } ], "revision_uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "revision_log": [], "status": [ { "value": true } ], "uid": [ { "target_type": "user", "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" } ], "title": [ { "value": "Tests won't tell you if your code works\n" } ], "created": [ { "value": "2023-06-29T00:00:00+00:00" } ], "changed": [ { "value": "2025-05-11T09:00:38+00:00" } ], "promote": [ { "value": false } ], "sticky": [ { "value": false } ], "default_langcode": [ { "value": true } ], "revision_translation_affected": [ { "value": true } ], "path": [ { "alias": "\/daily\/2023\/06\/29\/tests-wont-tell-you-if-your-code-works", "langcode": "en" } ], "body": [ { "value": "\n

Having a passing test suite or CI pipeline doesn't tell you if your appliction works.<\/p>\n\n

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.<\/p>\n\n

There could be untested code that isn't covered at all.<\/p>\n\n

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.<\/p>\n\n

Here's the thing<\/h2>\n\n

Instead of telling you that your application works by passing, the test suite tells you something is broken when it fails.<\/p>\n\n

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.<\/p>\n\n ", "format": "full_html", "processed": "\n

Having a passing test suite or CI pipeline doesn't tell you if your appliction works.<\/p>\n\n

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.<\/p>\n\n

There could be untested code that isn't covered at all.<\/p>\n\n

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.<\/p>\n\n

Here's the thing<\/h2>\n\n

Instead of telling you that your application works by passing, the test suite tells you something is broken when it fails.<\/p>\n\n

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.<\/p>\n\n ", "summary": null } ] }