Add daily email for 2024-03-02
Are your tests good enough?
This commit is contained in:
parent
077e3afe00
commit
ff21dab2a3
|
@ -13,16 +13,18 @@ banner_text: |
|
|||
<a href="/drupal-upgrade">Plan your upgrade to Drupal 10 now</a>.
|
||||
|
||||
ctas:
|
||||
d7eol: |
|
||||
There's less than a year until Drupal 7's end-of-life date. <a href="%site.url%/drupal-upgrade">Plan your upgrade to Drupal 10 now!</a>
|
||||
subscription: |
|
||||
Do you need immediate access to an expert Drupal Developer? With my <a href="%site.url%/subscription">Drupal development subscription</a>, make unlimited requests for a fixed monthly price in less time than posting to a job board!
|
||||
call: |
|
||||
Are you still using Drupal 7 and don’t know what’s involved to upgrade to Drupal 10? <a href="%site.url%/call">Book a Drupal 7 upgrade consultation call</a> or <a href="%site.url%/drupal-upgrade">an upgrade roadmap</a>.
|
||||
pair: |
|
||||
Need help or want another pair of eyes on your code? Book a <a href="%site.url%/call">1-on-1 consulting call</a> or an <a href="%site.url%/pair">online pair programming session</a> with a 100% money-back guarantee.,
|
||||
d7eol: |
|
||||
There's less than a year until Drupal 7's end-of-life date. <a href="%site.url%/drupal-upgrade">Plan your upgrade to Drupal 10 now!</a>
|
||||
module: |
|
||||
If you're creating a new Drupal module, try my <a href="https://github.com/opdavies/drupal-module-template">free Drupal module template</a>.
|
||||
subscription: |
|
||||
Do you need immediate access to an expert Drupal Developer? With my <a href="%site.url%/subscription">Drupal development subscription</a>, make unlimited requests for a fixed monthly price in less time than posting to a job board!
|
||||
testing_course: |
|
||||
Do you want to learn about automated testing in Drupal? Take my [free 10-day email course]({{site.url}}/atdc] and get daily lessons straight to your inbox.
|
||||
pair: |
|
||||
Need help or want another pair of eyes on your code? Book a <a href="%site.url%/call">1-on-1 consulting call</a> or an <a href="%site.url%/pair">online pair programming session</a> with a 100% money-back guarantee.,
|
||||
|
||||
menu_links:
|
||||
-
|
||||
|
|
24
source/_daily_emails/2024-03-02.md
Normal file
24
source/_daily_emails/2024-03-02.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
title: Are your tests good enough?
|
||||
date: 2024-03-02
|
||||
permalink: archive/2024/03/02/are-your-tests-good-enough
|
||||
tags:
|
||||
- software-development
|
||||
- automated-testing
|
||||
- test-driven-drupal
|
||||
cta: testing_course
|
||||
snippet: |
|
||||
You're about to refactor or add to some existing application code. How confident are you it will work afterwards?
|
||||
---
|
||||
|
||||
You've been asked to add a new feature to or refactor some existing code.
|
||||
|
||||
Assuming you have automated tests already (if not, why not?), before you change the code, you should ask whether they're good enough.
|
||||
|
||||
They need to be passing, but do you feel confident the existing functionality will still work after you make your changes?
|
||||
|
||||
Do you have all the existing use cases covered?
|
||||
|
||||
If so, carry on.
|
||||
|
||||
If not, spend some time improving your tests first to get that confidence before making any changes.
|
Loading…
Reference in a new issue