This repository contains all the code for The Engineering Coach YouTube video, "Test && Commit || Revert: A New Way to do TDD (PHP)".
This project serves as a practical demonstration of Test && Commit || Revert (TCR), an automated workflow that challenges the traditional TDD cycle. TCR is a powerful discipline that helps you work in incredibly small, safe steps by automatically committing your changes when tests pass and reverting them when they fail.
- The core principle of Test && Commit || Revert.
- How to set up a TCR workflow for your PHP projects.
- The benefits of this practice for building confidence and eliminating fear.
- How TCR encourages a truly disciplined approach to TDD.
##Watch the Video Tutorial
This video is an excellent resource for anyone who wants to explore a new, game-like approach to Test-Driven Development.
👉 Click here to watch the full tutorial!
To run the code and follow along with the video, you'll need PHP and Composer.
- Clone the repository:
git clone https://github.com/the-engineering-coach/017-php-tcr
cd 017-php-tcr
- Install the dependencies:
composer install
- Run the TCR script:
./tcr
The Engineering Coach is a YouTube channel dedicated to helping software engineers and engineering managers improve their skills and craft. We provide practical advice and tutorials on topics that matter in the real world of software development.
For more software engineering tutorials and coaching, subscribe to The Engineering Coach on YouTube. You can also connect with me on Bluesky or Mastodon.