Appendix A. Cheat Sheet
By popular demand, this “cheat sheet” is loosely based on the 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—
unittestis fine, and options likepy.test,nose, orGreencan 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.
The Basic TDD Workflow: Red/Green/Refactor
-
Red, Green, Refactor
-
Double-loop TDD (Figure A-1)
-
Triangulation
-
The scratchpad
-
“3 Strikes and Refactor”
-
“Working State to Working State”
-
“YAGNI”
Figure A-1. Double-loop TDD
Moving Beyond Dev-Only Testing
-
Start system testing early. Ensure your components work together: web server, static content, database.
-
Build a production environment early, and automate deployment to it.
-
PaaS versus VPS
-
Docker
-
Ansible versus Terraform
-
-
Think through deployment pain points: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access