Create the Tactical Design with Tests
We will create a test list for the coding task at hand and set up the project to get ready for writing the first test.
Create a Test List
For the three operations we have, letâs list some initial tests that come to mind. Remember, this is not a complete or a perfect list, but just an initial list of ideas:
- getTasks updates taskscount
- getTasks updates tasks table
- call getTasks on window onload
- addTask updates message
- addTask calls getTasks
- register add task click event on window onload
- deleteTask updates message
- deleteTask calls getTasks
More tests will come to mind once we start coding. Weâre ready to start with the first test, but we need to get the project prepared for client-side coding.
Set Up the Project ...
Get Test-Driving JavaScript Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.