Changes for page TDD Workflow Example
Last modified by chrisby on 2023/12/08 07:51
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,7 +4,7 @@ 4 4 5 5 ### The Role of Git 6 6 7 -The goal of TDD is to take many small, simple, and safe steps iteratively. A save step, meaning all tests pass, should be physically saved to provide the ability to roll back. Wheneversomething goes wrong, the last save step is not far away, androllingback is cheapbecauseonlyaninsignificantamount of code andeffortisthrownaway.7 +The goal of TDD is to take many small, simple, and safe steps iteratively. A save step, meaning all tests pass, should be physically saved to provide the ability to compare current changes to the last safe step, or to roll back. If something goes wrong, the last safe step is not far away, and finding the problem in a small snippet of changed code makes debugging much easier. 8 8 9 9 * When a test passes, **stage the changes** via `git add .` 10 10 * When a test passes and is complete, **commit the staged changes** via `git commit -am "..."`