Test Driven Development: By Example

Test Driven Development: By Example

3.93 of 5 stars 3.93  ·  rating details  ·  602 ratings  ·  38 reviews
-- Write clean code that works with the help of this groundbreaking software method.-- Begin to write automated tests that allow you to "test on the fly, " and learn to optimize the practice of refactoring.

-- Example-driven teaching; Kent Beck's step-by-step instruction will have you using TDD to further your projects.

Quite simply, test-driven development is meant to elimi...more
Paperback, 216 pages
Published November 8th 2002 by Addison-Wesley Professional (first published January 1st 2002)
more details... edit details

Friend Reviews

To see what your friends thought of this book, please sign up.
The  C Programming Language by Brian W. KernighanThe Pragmatic Programmer by Andrew HuntDesign Patterns by Erich GammaRefactoring by Martin FowlerStructure and Interpretation of Computer Programs by Harold Abelson
Essential Programming Books
26th out of 92 books — 159 voters
The Pragmatic Programmer by Andrew HuntMastering Regular Expressions by Jeffrey E.F. FriedlThe Mythical Man-Month by Frederick P. Brooks Jr.The Art of Computer Programming, Volume 4, Fascicles 0-4 by Donald E. KnuthDeath March by Edward Yourdon
Ship It Suggested Reading List
16th out of 30 books — 1 voter


More lists with this book...

Community Reviews

(showing 1-30 of 1,347)
filter  |  sort: default (?)  |  rating details
Erika RS
This is one of those books that I would have rated more highly a few years ago. TDD is not a particularly complicated concept and, these days, it's not particularly new either. Thus, the explanations I've come across online[1] and the one book I've read on the topic[2] have been quite sufficient exposure, making reading another book on the topic superfluous.

That said, Beck's book was, in my opinion, better than Test-Driven Development: A Practical Guide by David Astels. Astels' book is not bad,...more
Francis Fish
This book has a simple purpose: show in clear and understandable language how to approach TDD. Nothing more or less, and he succeeds very well.

Other reviewers have commented that they were annoyed about how this book didn't cover mocks and stubs and a lot of the other artefacts of testing - that wasn't Beck's purpose, he wanted to show how it's done and then catalogue the patterns needed in order to make it work. While he covered mock and null objects he didn't go into the details because these...more
Daniel
Mar 09, 2009 Daniel rated it 5 of 5 stars
Shelves: work
This is a different kind of programming book. It's a relatively fun book to read.

It's a good companion's to Fowler's Refactoring. For some reason, I'll always remember Beck from his 'coding smells' concept - it comes from his grandma saying "if it smells [bad:], change it" or something like that.

It too is non-intuitive at first and goes against a lot of learnings. But, all great concepts start out that way. It essentially tells you to write your tests first and (only then), write the smallest...more
John Norman
I must have read this back when it came out because I remember some of the jokes. This is a fascinating book about TDD, esp. if you read it now, given the maturation of the development model. On p. 199 there is a tantalizing section on "Application" TDD, where in a paragraph Beck anticipates BDD -- and how hard BDD can be if you don't properly rope in stakeholders as collaborators. I don't think we've figured that one out yet.

The book is a weird mix. First there's a section where Beck uses TDD t...more
Marshall
Such a wonderfully written book on Test-Driven Development (TDD). It walks through several easy-to-follow examples, and then wraps up with a nice discussion of TDD and some of the patterns that show up during this style of development. This book is a breeze to read, and very enlightening. I'm so tired of ugly code that breaks all the time, so I was hoping to be persuaded that TDD really is the best way to "write clean code that works." This book definitely persuaded me.

The surprising thing was h...more
Mohamed Sanaulla
Salient features of the book:

- teeny-tiny chapters which helps you to read through the chapters swiftly.
- First section totally deals with how TDD can be applied by using an example.
- Third section explains useful patterns which can be used in TDD.
- Easy to understand english, with humor sprinkled through out the book.
- Authored by Kent Beck of JUnit, Extreme Programming fame.

I couldn’t manage to digest the contents of the 2nd section which deals with the creating of a testing framework called x...more
Will
I liked this bug in as much as it talks about adding tests. But it's far too simple, almost to the point to the point of being simplistic. It barely covers Mocks, does not discuss heavily data driven tests, doesn't discuss the complexities of altering existing code, or working with a 3rd party library, working with time or thread dependent code, and doesn't talk about how test driven development may involve refactoring of not only the code, but also of the test framework itself.

I realize that th...more
David Workman
This fairly slim tome is overflowing with useful information from the 2 worked examples of real-world problems being solved by the author (Kent Beck, of XP and Smalltalk fame, among other things) using Test Driven Development.

The book starts with TDD being applied to the problem of doing multi-currency conversions with given exchange rates. Kent Beck does a chapter per test and associated refactoring, and this leads to extremely short chapters but where almost the entire chapter is useful infor...more
Timothy Culp
Should be required reading for all programmers. Basically this is Extreme Programming with a more politically correct title. I like this style of programming and preach it religiously to developers. It's a very difficult paradigm shift for most engineers to think about test uses cases before design. But once they see the beauty of unit tests married to their code, there a very few engineers that want to go back to the days of hunting and pecking through a large application for the purpose of deb...more
Jacob Sims
Kent Beck clearly illustrates the methodologies and practices involved with utilizing a Test Driven Development approach to software creation. This clarity of vision allows the reader to sit inside Kent's head as he works his way through a sample financial currency converter built via TDD. Beck carefully incorporates the philosophy, science, practice, or art of refactoring into all of his examples. One of the lighter and more enjoyable reads on TDD, this books falls short only on the small secti...more
Mike Huot
THis book changed the way I look at programming. The biggest thing it did was helped me figure out how to get out of corners. In many cases, I'm confused with where to start or where to go next to complete a project or solve a problem. Sometimes it is just about breaking your work up into small enough pieces. Using TDD, you are forced to. You need to pull apart what you are doing into testable units.
AJ Ostrow
Obviously a programming book. It certainly helped me understand the importance of tests, but it could be half as long and achieve something similar. It is really for hands-on learning with Java and to a lesser extent Python.
Ash Moran
Excellent, carefully written, step-by-step description of TDD. This is the real microscopic end of the development cycle, and intends to teach the smallest possible steps you can work in. The "test-driven test framework" chapter is brilliant, and well worth working through in another language (I did it in Ruby).

The only big downside is that this was written before the significance of mocks became known, so read Growing Object-Oriented Software, Guided by Tests (wich is completely on the other en...more
Babak
This book is was not very useful for me. Although it can be regarded as an extreme crash course in test driven development, I don't think I will ever be able to develop as Beck suggests.
Brian
This canonical introductory book gives the reader the basis for a lot of modern TDD principles, although Beck does get sidetracked at times (read: skip the chapter on design patterns--they're better learned elsewhere).
Nikola Petrov
I like books that are driven by examples! This is one of the best and Kent Beck is my type of writer for sure.
Trung Vo
I read it about a month ago and what I really remembered from this book is red/green/refactor patterns. I didn't really get other gitty nitty details from it. Maybe, it's the first book I read about TDD, so let's hope I pick up more from the next book about TDD.
Amp Tanawat
Its greatness is even one who never do TDD before can start with it and end with clear understanding.
Mara Averick
I just wish I had read this book sooner- great guide to TDD with practical, well-illustrated examples.
Alex Ott
Good step-by-step intro into test driven development for beginners. I read it just to get some ideas for my presentation about TDD for our deveopers
Zé Ricardo
Very nice introduction to TDD and good chapters about patterns as bonuses. Good job Mr. Beck :)
Adolfo
This is a short, easy to read introduction to TDD. I was a bit skeptical because I heard a lot of people complaining about this book not being realistic. While I agree with them in the "not real world stuff" part, I think they are missing the point. This book is not about how to test big systems, nor is it really about testing (in the traditional sense), but about developing software in an incremental and piecemeal way.

If you are looking for an introduction to TDD, this book is for you. If what...more
Mert
Great book. Not only explains how-to, it also explains why.
Riggs
Mar 10, 2010 Riggs added it
gute, praxisnahe und kurzweilige Einführung!
Timo
Lots of information and lots of code examples (in Java). Writer's focus wander a bit from time to time but altogether this is good book about TDD.
Yawar
Clear, concise guide to TDD.
Lisa
Kent Beck is my new hero.
Jonathan
The book was pretty good. I would have liked to see an appendix with the complete source listing for section two, as it got very confusing trying to keep all the snippets connected in my head.
Jamis Buck
I haven't actually read the whole thing, but the first half was pretty amazing. I generally have a hard time with tech books, which is why I probably won't actually finish the book. :)
Kiril Kirilov
Michael Feathers > Kent Beck
« previous 1 3 4 5 6 7 8 9 44 45 next »
topics  posts  views  last activity   
Waters Software: Kent Beck: Test Driven Development By Example 1 1 May 08, 2013 03:08am  
Test-Driven development by Example (Paperback)
Programování řízené testy (Paperback)

Goodreads is hiring!

If you like books and love to build cool products, we may be looking for you.
Learn more »
Extreme Programming Explained: Embrace Change Planning Extreme Programming Implementation Patterns SmallTalk Best Practice Patterns JUnit Pocket Guide

Share This Book

Your website