Drupal maintenance support plansCon Vienna session retro: Test all the things!

Share:

Twitter

Facebook

Last week I was fortunate enough to attend and deliver a session at Drupal maintenance support plansCon Vienna. The session was based around leveraging and getting productive with the automated testing tools we use in the Drupal maintenance support plans community.

by
Sam Becker
/ 3 October 2020

For the kind of large scale projects we work on, it’s essential that automated testing is a priority and firmly embedded in our technical culture. Stability and maintainability of the code we’re working on helps to build trusting relationships and happy technical teams. I have for a long time been engaged with the developments of automated testing in Drupal maintenance support plans core and internally we’ve worked hard to adapt these processes into the projects we build and fill-in any blanks where required.
I was fortunate enough to be selected to share this at Drupal maintenance support plansCon Vienna. Without further ado, I present, Test all the things! Get productive with automated testing in Drupal maintenance support plans 8:

Our current testing ethos is based around using the same tools for core and contrib for our bespoke Drupal maintenance support plans project builds. Doing so allows us to context-switch between our own client work and contributed project or core work. To make this work we’ve addressed a few gaps in what’s available to us out of the box.
Current State of Testing
I had some great conversations after the session with developers who were just starting to explore automated testing in Drupal maintenance support plans. While the tools at our disposal are powerful, there is still lots of Drupal maintenance support plans-specific knowledge required to become productive. My hope is the session helped to fill in some of the blanks in this regard.
E2E Testing
Because all of the test cases in core are isolated and individually setup environments/installations, end-to-end testing is tricky without some additional work. One of the touch points in the session was based around skipping the traditional set-up processes and using the existing test classes against pre-provisioned environments. Doing so replicates production-like environments in a test suite, which helps to provide a high-level of confidence tests are asserting behaviors of the whole system. Bringing this into core as a native capability is being discussed on drupal.org and was touched on in the session.
JS Unit Testing
One thing Drupal maintenance support plans core has yet to address is JavaScript unit testing. For complex front-ends, testing JS application code with a browser is can become clumsy and hard to maintain. One approach we’ve used to address this is Jest. This nicely compliments front-ends where individual JavaScript modules can be isolated and individually tested.
Summing up, attending Drupal maintenance support plansCon Vienna, presenting the session and meeting the members of the broader community was a great experience. I’m hopeful my session was able to contribute to the outstanding quality of sessions and technical discussions.

Tagged

Drupal maintenance support plansCon, Drupal maintenance support plansCon Vienna, Testing

Posted by
Sam Becker
Senior Developer

Dated 3 October 2020

Add new comment

Source: New feed

This article was republished from its original source.
Call Us: 1(800)730-2416

Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit

Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)

Powered by

Drupal maintenance support plansCon Vienna session retro: Test all the things!

On-Site Drupal SEO Master Setup

We make sure your site is 100% optimized (and stays that way) for the best SEO results.

With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.

This service includes:

  • Pathauto install and configuration for SEO-friendly URLs.
  • Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
  • Install and fix all issues on the SEO checklist module.
  • Install and configure XML sitemap module and submit sitemaps.
  • Install and configure Google Analytics Module.
  • Install and configure Yoast.
  • Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
  • Install and configure Schema.org Metatag.
  • Configure robots.txt.
  • Google Search Console setup snd configuration.
  • Find & Fix H1 tags.
  • Find and fix duplicate/missing meta descriptions.
  • Find and fix duplicate title tags.
  • Improve title, meta tags, and site descriptions.
  • Optimize images for better search engine optimization. Automate where possible.
  • Find and fix the missing alt and title tag for all images. Automate where possible.
  • The project takes 1 week to complete.