In less than 12 months, Drupal 7 will be end-of-life and no longer supported. Plan your upgrade to Drupal 10 now.

Automated tests mean you can make changes quicker

Before fixing yesterday's bug, because I'd written automated tests, I ran them to ensure they were all passing.

Then, I was able to focus solely on adding the new use case - starting with a failing test to replicate the issue and then getting it to pass.

Because it was already tested, I didn't need to worry about breaking any other functionality and introducing regressions.

When the new test was passing, I could run the whole test suite and ensure they still passed and things continued to work.

Without the tests, I'd either need to check everything else manually (which takes time) or worry that something could potentially be broken.

Having tests meant I could be confident that the new and existing functionality worked.

- Oliver

P.S. 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.

Was this useful?

Sign up here and get more like this delivered straight to your inbox every day.

About me

Picture of Oliver

I'm an Acquia-certified Drupal Triple Expert with 17 years of experience, an open-source software maintainer and Drupal core contributor, public speaker, live streamer, and host of the Beyond Blocks podcast.