The Clean Test Automation Monthly is a monthly blog post that shares interesting or useful test automation content that I consumed during the current month. This blog post is always published on the first day of the “next” month.

Let’s begin!

Table of Contents:

Test Design

The Test Automation Pyramid Is Dead. Here’s What I Use Instead argues that we shouldn’t concentrate on the ratio of different tests. Instead, we should maximize the confidence provided by our test suite and minimize the cost required to write and maintain it.

The Hardest Part of Test Automation Is Deciding What Not to Automate explains why we shouldn’t automate everything, and helps us to evaluate the return on investment (ROI) of a test case and select the test cases that have the highest ROI.

What to Mock in Integration Tests demonstrates how we can leverage mocks when we are writing integration tests.

Tests as data identifies the problems often found in AI-generated tests and introduces techniques that allow us to restore confidence in our test suite.

Deterministic Simulation Testing explains why distributed systems are hard to test and describes how we can write deterministic tests for them by using a technique called simulation testing.

Specification Coverage vs. Line Coverage argues that line coverage tells us which code was executed, and specification coverage answers the question: does our code fulfill its business requirements?

Backend

Testcontainers Integration Testing: Running Your Real WAR in Docker describes how we can write API and end-to-end tests for a WAR file that’s run with Payara Micro and Testcontainers.

Jakarta EE Testing Tools Compared: WeldInitiator, Arquillian and Testcontainers compares three testing tools, identifies the pros and cons of each tool, and helps us to select the right tool for the job.

A Guide to the System Properties Extension Annotations in JUnit 6.1 demonstrates how we can manage JVM system properties with JUnit Jupiter by using built-in annotations.

Break your dependencies on purpose: introducing Quarkus Resiliency Testing provides an introduction to a Quarkus extension that allows us to write tests for code that handles failures in outbound connections.

Zero-Boilerplate Tests of Database and UI, with TestContainers, FlowLogix and Jakarta EE demonstrates how we can remove boilerplate code from our Jakarta EE integration and end-to-end tests.

UI / End-to-End

Flaky Tests: 7 Causes and How to Tell Which One You Have identifies seven common causes of flaky Playwright tests and provides tips that help us to identify which one is responsible.

AI Wrote My Playwright Tests. Now What? shares a practical checklist that helps us to decide whether a generated test is valuable or not.

The Test Automation Framework I Wish I’d Built 10 Years Ago Part 1 and Part 2 provide a comprehensive tutorial that describes how we can create a scalable test automation framework from scratch.