At the beginning I would like to say big thanks to the author – Christian who gave me the book at the Front-Trends 2010 Conference. The book is brand new (first printing, September 2010), so I’m more excited to have it right now. Thank You Christian 🙂
Who the author is?
He lives in Oslo, Norway.
What this book is about?
Automated testing provides a solution to the manual testing process. It’s easier, faster to do test automatically than by hand. Test-driven development is a step further. It moves unit tests to the front row, making them the primary point. In TDD tests are written before writing production code.
- Test-Driven Development
- Testing Patterns
Part I. Test-Driven Development
This part is based on small projects. Each of them introduces new test-related concepts and shows them in practice. Code supplied in this part is runnable and actually does things. From this part reader can learn how to test code that depends on browser API, timers, event handlers, DOM manipulation, asynchronous requests, etc. Also ides on how to extend the functionality are offered. Extended solutions are available from the books website.
Part IV. Testing Patterns
The last, final part of the book reviews some of the techniques used throughout previous part, but from a wider angle. Tests are investigated much detailed way with different forms of test verification. At the end, author gives some guidelines to help write good unit tests.
The book’s website (http://tddjs.com) contains code listings (zip archives and git repositories). For the Part III the Git repositories can be especially useful because they navigate the history, shows how the code evolved, allows you to see each step taken.
Author: Christian Johansen
Copyright © 2011 Pearson Eduction, Inc.
Where to buy? Amazon – book, InformIt – PDF