Update content

This commit is contained in:
Oliver Davies 2025-04-21 02:34:46 +01:00
parent a743be105b
commit d4d5a179c7
3246 changed files with 108862 additions and 108287 deletions

View file

@ -0,0 +1,100 @@
{
"uuid": [
{
"value": "6d3a98c5-1dc2-4467-965c-815855d95d2b"
}
],
"langcode": [
{
"value": "en"
}
],
"type": [
{
"target_id": "daily_email",
"target_type": "node_type",
"target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7"
}
],
"revision_timestamp": [
{
"value": "2025-04-21T01:21:44+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": "Do you need to write tests for small or short-lived projects?\n"
}
],
"created": [
{
"value": "2023-10-14T00:00:00+00:00"
}
],
"changed": [
{
"value": "2025-04-21T01:21:44+00:00"
}
],
"promote": [
{
"value": false
}
],
"sticky": [
{
"value": false
}
],
"default_langcode": [
{
"value": true
}
],
"revision_translation_affected": [
{
"value": true
}
],
"path": [
{
"alias": "\/daily\/2023\/10\/14\/do-you-need-to-write-tests-for-small-or-short-lived-projects",
"langcode": null
}
],
"body": [
{
"value": "\n <p>When does it make sense not to write automated tests?<\/p>\n\n<p>Tests prevent regressions in codebases that are changed and updated over time.<\/p>\n\n<p>So, if you're working on a short-term project, such as a marketing campaign website that will only be live for a few months, you won't get as much benefit from having tests, especially if you may not even change it once it's live.<\/p>\n\n<p>Likewise, tests are useful for projects on which you want to avoid downtime and outages, especially if you sell products via your website or it contains important information. For other websites, such as personal blogs, that are less critical, testing may be less beneficial.<\/p>\n\n<p>Also, one of Drupal's key benefits is that you can build websites within the Drupal UI, without needing to write custom code.<\/p>\n\n<p>If you're going down this route, there is no custom code to test and a separate tool that checks URLs exist and returns the correct response code would be a better fit.<\/p>\n\n<p>If you then need to add any custom code and functionality, you may want to add tests.<\/p>\n\n<p>Whilst there are some situations where not writing tests is reasonable, there are more reasons and situations when you should, compared to not.<\/p>\n\n ",
"format": "full_html",
"processed": "\n <p>When does it make sense not to write automated tests?<\/p>\n\n<p>Tests prevent regressions in codebases that are changed and updated over time.<\/p>\n\n<p>So, if you're working on a short-term project, such as a marketing campaign website that will only be live for a few months, you won't get as much benefit from having tests, especially if you may not even change it once it's live.<\/p>\n\n<p>Likewise, tests are useful for projects on which you want to avoid downtime and outages, especially if you sell products via your website or it contains important information. For other websites, such as personal blogs, that are less critical, testing may be less beneficial.<\/p>\n\n<p>Also, one of Drupal's key benefits is that you can build websites within the Drupal UI, without needing to write custom code.<\/p>\n\n<p>If you're going down this route, there is no custom code to test and a separate tool that checks URLs exist and returns the correct response code would be a better fit.<\/p>\n\n<p>If you then need to add any custom code and functionality, you may want to add tests.<\/p>\n\n<p>Whilst there are some situations where not writing tests is reasonable, there are more reasons and situations when you should, compared to not.<\/p>\n\n ",
"summary": null
}
],
"feeds_item": [
{
"imported": "2025-04-21T01:21:44+00:00",
"guid": null,
"hash": "9e2e450ab9a61ff98aa475086eedc78f",
"target_type": "feeds_feed",
"target_uuid": "90c85284-7ca8-4074-9178-97ff8384fe76"
}
]
}