diff --git a/app/config/sculpin_site.yml b/app/config/sculpin_site.yml index 5d0a6c1f..d726ffee 100644 --- a/app/config/sculpin_site.yml +++ b/app/config/sculpin_site.yml @@ -13,16 +13,18 @@ banner_text: | Plan your upgrade to Drupal 10 now. ctas: - d7eol: | - There's less than a year until Drupal 7's end-of-life date. Plan your upgrade to Drupal 10 now! - subscription: | - Do you need immediate access to an expert Drupal Developer? With my Drupal development subscription, 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? Book a Drupal 7 upgrade consultation call or an upgrade roadmap. - pair: | - Need help or want another pair of eyes on your code? Book a 1-on-1 consulting call or an online pair programming session with a 100% money-back guarantee., + d7eol: | + There's less than a year until Drupal 7's end-of-life date. Plan your upgrade to Drupal 10 now! module: | If you're creating a new Drupal module, try my free Drupal module template. + subscription: | + Do you need immediate access to an expert Drupal Developer? With my Drupal development subscription, 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 1-on-1 consulting call or an online pair programming session with a 100% money-back guarantee., menu_links: - diff --git a/source/_daily_emails/2024-03-02.md b/source/_daily_emails/2024-03-02.md new file mode 100644 index 00000000..a4837a29 --- /dev/null +++ b/source/_daily_emails/2024-03-02.md @@ -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. diff --git a/source/_layouts/daily_email.html.twig b/source/_layouts/daily_email.html.twig index 1b922f36..b8cfd963 100644 --- a/source/_layouts/daily_email.html.twig +++ b/source/_layouts/daily_email.html.twig @@ -9,9 +9,9 @@ {% block cta %} {% if page.cta and site.ctas[page.cta] is defined %} -
P.S. {{ site.ctas[page.cta]|raw }}
+P.S. {{ site.ctas[page.cta]|raw|markdown }}
{% else %} -P.S. {{ random(site.ctas)|raw }}
+P.S. {{ random(site.ctas)|raw|markdown }}
{% endif %} {% endblock %} {% endblock %}