Back to 2023 Agenda

Stop writing fragile tests: Use SOLID Principles

🕓 10:30 AM - 11:15 AM📍 Riverview Room 2
The aspiration for a comprehensive suite of automated tests is universal, yet the desire to maintain these often fragile and hurriedly constructed tests is scarce. Ignored test failures accumulate, while the necessary time and effort to rectify them seem to be perpetually out of reach. What if we could change that? What if we could harness software engineering's best practices to make our automated tests not only more robust but also more efficient and easier to maintain? This talk explores the transformative impact of applying SOLID principles and the DRY (Don't Repeat Yourself) principle to your testing code. These strategies lead to tests that are quicker to write, offer improved coverage, and - most importantly - are easier to amend when the underlying codebase or its dependencies change. Drawing from my craftsmanship, I will illustrate how these principles have revolutionised my testing approach for both front-end and back-end code. I'll share my journey of creating a test suite that can be adapted rapidly to changing dependencies and provides such extensive coverage that errors can be pinpointed to their exact point of failure. Join this talk to discover how to leverage your software engineering prowess to craft robust, comprehensive tests that remain effortless to maintain.
Ryan OakleyRyan Oakley

It’s such a privilege to be able to run this conference and DDD Perth would love to acknowledge the traditional custodians of the land in which DDD is created, presented, and shared, the Whadjuk people of the Noongar Nation and their connections to land, sea and community. We pay our respect to their Elders past, present and emerging, and extend that respect to all Aboriginal and Torres Strait Islander peoples today.