The Clean Test Automation Monthly is a monthly blog post that highlights the best test automation content which I read during the current month. This blog post is always published on the last day of the month.
Let's begin!
Advanced Visual Testing with Playwright helps us to implement and enhance visual tests with Playwright. It explains how we can write our first visual test, manage baseline screenshots, and minimize false positives. The author also compares page- and component-level tests, and explains how we can run visual tests in a CI pipeline.
SpringRunner vs. SpringExtension vs. @SpringBootTest explains the differences of these three testing components and describes when we should use each component. This blog post helps us to choose the right tool for the job, whether were're writing tests with JUnit 4 or JUnit 5.
A tale of two languages demonstrates that using technical terms in test descriptions will obscure the test's intent. The author suggests that we should use domain-specific language to clarify the intent of our tests. This will make our tests easier to read and understand.
Spring Boot Test Context Caching: The Complete Guide explores how Spring's TestContext framework caches application contexts to enhance test suite performance. It explains the caching mechanism, identifies common pitfalls that lead to unnecessary context reloads, and offers tips for optimizing test configurations which reduce build times.
Is BDD Dying? addresses concerns about the relevance of Behavior-Driven Development (BDD). The author identifies the core principles of BDD, provides a quick history of BDD, and explains why the last few years have been rough for BDD. Finally, the author shares his thoughts about the future of BDD.
Page Objects vs. Functional Helpers argues that traditional page objects introduce unnecessary complexity. The author suggests that we should replace page objects with helper functions which reduce abstraction layers and simplify test maintenance and debugging.