oliverdavies.uk/content/node.1583ba2e-e791-4f4d-be82-4c59fe51f1b5.yml

73 lines
2.6 KiB
YAML

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
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: |
<p>Having a passing test suite or CI pipeline doesn't tell you if your appliction works.</p>
<p>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>
<p>There could be untested code that isn't covered at all.</p>
<p>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>
<h2 id="here%27s-the-thing">Here's the thing</h2>
<p>Instead of telling you that your application works by passing, the test suite tells you something is broken when it fails.</p>
<p>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>
format: full_html
processed: |
<p>Having a passing test suite or CI pipeline doesn't tell you if your appliction works.</p>
<p>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>
<p>There could be untested code that isn't covered at all.</p>
<p>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>
<h2 id="here%27s-the-thing">Here's the thing</h2>
<p>Instead of telling you that your application works by passing, the test suite tells you something is broken when it fails.</p>
<p>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>
summary: null
field_daily_email_cta: { }