The Testing Goat

Obey the Testing Goat!

TDD for the Web, with Python, Selenium, Django, JavaScript and pals...

Plans for the second edition

Sun 25 September 2016
By Harry

The second edition was mostly prompted by the announcement by Mozilla that they were shutting down Persona in November 2016. Given that it would affect almost all the chapters from 15 thru to 21, it seemed a good excuse to do a full second edition rather than just an update.

Here, in brief, is an outline of the plan:

Chapter rewrites:

  • Rewrite chapters 15 + 16, replace persona with passwordless auth: first draft done

  • Update chapters 17+ for persona changes: in progress

  • Update JavaScript chapter for new version of QUnit: done

  • Update deployment chapters to use Systemd instead of Upstart: started but only in ansible appendix.

  • Two new chapters on REST APIs and Ajax: code spiked, but chapters not yet written

Minor updates + changes:

  • Switch to using a virtualenv from the very beginning
  • Upgrade to latest Django (1.10?)
  • Use less HTML ids and more classes
  • Use more early returns in FTs when refactoring partially finished user stories.

That's it, in very brief. You can read more on the google group, and feel free to join in the discussion there too, or here. Let me know what you think!


comments powered by Disqus
Read the book

The book is available both for free and for money. It's all about TDD and Web programming. Read it here!

Reviews & Testimonials

"Hands down the best teaching book I've ever read""Even the first 4 chapters were worth the money""Oh my gosh! This book is outstanding""The testing goat is my new friend"Read more...


A selection of links and videos about TDD, not necessarily all mine, eg this tutorial at PyCon 2013, how to motivate coworkers to write unit tests, thoughts on Django's test tools, London-style TDD and more.

Old TDD / Django Tutorial

This is my old TDD tutorial, which follows along with the official Django tutorial, but with full TDD. It badly needs updating. Read the book instead!

Save the Testing Goat Campaign

The campaign page, preserved for history, which led to the glorious presence of the Testing Goat on the front of the book.