Testing The Right Things

Rafael A. George Duval
2 min readJun 28, 2023

--

Writing a test that fails before writing the actual production code is essential to ensure the system’s safety. This helps create a suite of automated tests confirming the system is ready for deployment. Refactoring code is only sometimes necessary. Sometimes, we can take small steps before refactoring. However, having a fast test suite is crucial. It allows us to test many ideas for the same problem quickly. When we want to do something different from the first step in the TDD Mantra, we must start the cycle by beginning at the system’s outer edge. This is done through an Acceptance test that describes when the user stops using the product. It’s essential to keep the Test-Driven Cycle fast and smooth, especially at the level of the rules that provide value to the business. An Acceptance test doesn’t need to describe a user’s click in a specific view.

A typical testing strategy is the primary reason for cost increases in most teams. This is particularly true when the strategy is designed to align with a framework structure. Tests document and reveal a code base’s inner workings and relationships. There are two sides to expenses during the development cycle, with one being associated with the team’s testing strategy.

Testing is crucial to obtain sufficient feedback during the development cycle and reduce the change risk. Test-driven development (TDD) is an anticipatory approach to software development that assists with the design of business processes. The objective of any software project is to create a structure that is easy to evolve, even when new members join the team, guided by tests.

The goal is to establish a sustainable development process not limited by tools. Focusing on the test suite improves the development environment. The primary reason to enhance the code base’s structure is to improve the team’s comprehension. A system evolves when the code structure is easy to understand. Tests are code and require maintenance. Over-testing or testing the wrong things can lead to increased development costs.

[¹]: Clean Agile: Back to Basics

--

--

Rafael A. George Duval
Rafael A. George Duval

Written by Rafael A. George Duval

✍🏼 Building a Solo Digital Media Company 🧪 Snippets of Text [https://snippetsoftext.substack.com/subscribe]

No responses yet