AI's new reality: how TDD principles amplify your success. The 2025 DORA report finds that AI, while powerful, acts as an amplifier, making existing good practices even more effective. This means that foundational principles like those found in test-driven development (TDD) are more critical than ever. TDD can help you leverage AI to accelerate development, improve code quality, and increase team performance. To learn more about these findings, you can download the full DORA 2025 report.
Test-driven development, or TDD, is a software development approach focused on writing tests before writing the actual code.
It's a method where tests guide the entire development process, helping to create cleaner, more reliable, and better-designed code. It is a design practice that helps you think about what your code needs to do before you write it. For projects where writing code is not the main task, you may want to explore low-code and no-code solutions that can help you implement similar testing principles.
The TDD workflow is a cycle that developers repeat over and over again. It is often called the "red, green, refactor" cycle, reflecting the status of your tests.
The first step is to write a test for a new piece of functionality. When you run this test, it should fail, which shows that the test is working correctly, and that the new feature isn’t in the code yet.
With a failing test in place, the next step is to write the minimal amount of code required for it to pass. The sole objective is to pass the test, without concern for code perfection or elegance.
Once the test is passing, you can improve the code. Refactoring is the process of cleaning up your code's design without changing how it works. Since you have a passing test, you can make changes with confidence, knowing you won't break anything.
The DORA report highlights a complex relationship between AI and software delivery quality. While AI can boost individual productivity and perceived code quality, it can also increase instability if not paired with strong foundational practices.
The DORA report's findings show that the core principles of TDD are more relevant than ever. By focusing on quality and iterative improvement, teams can effectively harness the power of AI while mitigating its risks. The report emphasizes that AI’s benefits are amplified when combined with these practices.
Working in small batches
The report confirms that working in small batches is a critical capability for high-performing teams. This practice allows teams to get feedback on changes quickly and more easily address issues. When AI is used in conjunction with this practice, it has a positive impact on product performance and helps to reduce friction within the development process.
Confidence in changes
Since TDD prioritizes writing tests first, it gives developers a high degree of confidence when making changes because the tests act as a safety net. This is particularly important in an AI-assisted environment where the volume and velocity of changes are dramatically increasing. The DORA report finds that using a version control system's rollback feature more frequently is associated with better team performance.
Systemic approach
The report highlights that successful AI adoption is a systems problem, not a tools problem. A well-designed internal platform provides the necessary guardrails and shared capabilities, ensuring that AI-generated code is safe and secure. These platforms help scale AI benefits from local optimizations to systemic organizational improvements.
Learn more about code quality and automated testing: To dive deeper into these subjects and understand how your team can leverage these capabilities, refer to the DORA report.These sections will provide additional context and insights:
Learn about working in small batches: The DORA website offers guides on test automation and working in small batches, which include practical steps and metrics to help your team improve.
Start building on Google Cloud with $300 in free credits and 20+ always free products.