7.3 Implementing the New Design Incrementally Using TDD

master
Jason Zhu 2020-11-09 18:20:08 +11:00
parent b1d13ee557
commit 540fe46f87
2 changed files with 11 additions and 0 deletions

View File

@ -30,3 +30,14 @@ Design of our to-do list app:
* View a list: use GET request. (It's a normal browser visit to the page) * View a list: use GET request. (It's a normal browser visit to the page)
* Create a brand new list: a special URL will accept POST requests `lists/new` * Create a brand new list: a special URL will accept POST requests `lists/new`
* Add new item to list: have a separate URL to send POST requests `/lists/<list identifier>/add_item` * Add new item to list: have a separate URL to send POST requests `/lists/<list identifier>/add_item`
## 7.2 Implementing the New Design Incrementally Using TDD
![Implementing New Design using TDD](img/7-1.jpg)
* On top-level, adding new feature by:
* 1. new FT
* 2. New app code
* 3. Refactor code
* On UT level:
* Add/Modify tests to verify changes we make

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB