Background Image
Table of Contents Table of Contents
Previous Page  465 / 478 Next Page
Information
Show Menu
Previous Page 465 / 478 Next Page
Page Background

APPENDIX F

Cheat Sheet

By popular demand, this “cheat sheet” is loosely based on the little recap/summary boxes

from the end of each chapter. The idea is to provide a few reminders, and links to the

chapters where you can find out more to jog your memory. I hope you find it useful!

Initial Project Setup

• Start with a

User Story

and map it to a first

functional test

.

• Pick a test framework—

unittest

is fine, options like

py.test

and

nose

can also

offer some advantages.

• Run the functional test and see your first

expected failure

.

• Pick a web framework such as Django, and find out how to run

unit tests

against it.

• Create your first

unit test

to address the current FT failure, and see it fail.

• Do your

first commit

to a VCS like

Git

.

Relevant chapters:

Chapter 1

,

Chapter 2 , Chapter 3

The Basic TDD Workflow

• Double-loop TDD

( Figure F-1 )

• Red, Green, Refactor

• Trianglulation

• The scratchpad

• “3 Strikes and Refactor”

• “Working State to Working State”

437