Today it’s TDD’s turn
Welcome to the compilation of heartbeats from my work, a mosaic of moments, musings and flashes of inspiration on software development topics. Many posts have been published first on various social media channels. Here I will continue loosely these chronicles. Enjoy reading.
Test-Driven Development
🔍 Looking to level up your development skills? Discover the power of Test-Driven Development (TDD) 🚀
Here is how the TDD cycle works:
1. Add a test, which fails (Red)
2. Run the tests. See if any test fails
3. Write enough code to pass all the tests (Green)
4. Run the tests again. If any test fails, go to step 3.
5. Refactor the code. (Refactor)