Summary
Here’s a short recap of what was covered in the second chapter.
We'll cover the following
Recap
That’s the end of the second chapter. Let’s have a short recap of what was covered and the key takeaways.
You were introduced to the five steps involved in test-driven development. These are as follows:
- Write the test.
- Run the test, and see it fail.
- Write the actual code.
- Make all tests pass.
- Refactor the code using the underlying tests as a bedrock to make sure that the refactoring process doesn’t break anything.
Note: The process of writing failing tests, writing code that makes those tests pass, and then refactoring the code to improve it is also called the “Red, Green, Refactor” process.
Get hands-on with 1400+ tech skills courses.