Process

In the previous section, we defined TDD, simple design, and refactoring. In this section we define a process that can be used to do TDD. There are two aspects to the process: One aspect is focused at a task or feature level, and the other focuses on an individual test.

Test List

In Kent Beck’s book, Test-Driven Development: By Example (Addison-Wesley, 2003), he describes a test list. When starting a new task or feature, you need to brainstorm a list of tests. As you think about these tests, write them down. In addition to describing the requirements unambiguously, this test list also indicates the scope of the activity and is the most complete definition of the completion criteria. How long should you spend doing this? For most tasks that ...

Get Test-Driven Development in Microsoft® .NET 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.