Test && Commit || Revert: A New Way to do TDD (PHP)

Опубликовано: 31 Март 2026
на канале: The Engineering Coach
121
0

Welcome to The Engineering Coach! Are you looking for a new approach to your TDD workflow? In this episode, we're exploring Test && Commit || Revert, or TCR.

TCR is an automated workflow that challenges the traditional "Red, Green, Refactor" cycle. The core principle is simple: every time your tests pass, the code is automatically committed. If a single test fails, the code is automatically reverted.

This seemingly extreme approach forces you to work in incredibly small, safe steps. It’s a game-like method that builds confidence, eliminates fear of breaking things, and encourages a truly disciplined TDD practice. You'll see how we set up and use this workflow in PHP to write code with a safety net.

The code for this episode can be found on GitHub: https://github.com/testingallthething...

Let's Connect
For more software engineering tutorials and coaching, subscribe to The Engineering Coach on YouTube. You can also connect with me on Bluesky or Mastodon.

Mastodon: https://mastodon.social/@braddle
Bluesky: https://bsky.app/profile/braddle1.bsk...
LinkedIn:   / mark-bradley-engineering-coach  

#TCR #TDD #TestAndCommitOrRevert #PHP #SoftwareEngineering #TheEngineeringCoach #CodingCoach