Test Driven Development: By Example
My rating:
didn't like it it was ok liked it really liked it it was amazing
add to my books

Test Driven Development: By Example

3.86 of 5 stars 3.86  ·  rating details  ·  246 ratings  ·  25 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 mean

...more
Paperback, 216 pages
Published November 8th 2002 by Addison-Wesley Professional (first published January 1st 2002)
more details... edit details
There is a good chance some of your friends read this book. Sign in to see!
sign in »

Friend Reviews

To see what your friends thought of this book, please sign up.

Community Reviews

(showing 1-30 of 534)
filter  |  sort: default (?)  |  rating details
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 be...more
Daniel
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 f...more
Will
Will rated it 3 of 5 stars
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 r...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 ...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
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 co...more
Babak
Babak rated it 3 of 5 stars
Shelves: professional
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.
Adolfo
Adolfo rated it 4 of 5 stars
Shelves: testing
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 realistic 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 a fun and co...more
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.
Alex Ott
Alex Ott rated it 3 of 5 stars
Shelves: programming
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 :)
Lucas
Lucas rated it 4 of 5 stars
Shelves: profesional, 2010
Buen libro, muy didáctico. Explica conceptos de una forma amena y simpática.
Riggs
Riggs added it
gute, praxisnahe und kurzweilige Einführung!
Lisa
Lisa rated it 5 of 5 stars
Shelves: reviewed-books
Kent Beck is my new hero.
Jonathan
Jonathan rated it 3 of 5 stars
Shelves: 2009
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
Tristan
Tristan rated it 5 of 5 stars
Shelves: programming, own-it
This book is a classic. I knew that beforehand, but still had not read it. It truly got me started on TDD and now I can't see any better way to program. I knew most of the concepts introduced in this book beforehand, but this book was able to instill in me the idea that TDD is totally necessary.
Austin Gilbert
The first section is an awesome introduction to this development technique. The second section of the book is informative but not as practically useful, IHMO. The third section has some interesting information about how to refactor in the context of TDD.
Evan Hoff
This book is a great introductory book to the art of TDD. I largely picked up TDD from the blogosphere, but picked this book up to try and cement my practice of it.
Steve
Steve rated it 5 of 5 stars
My favorite thing about this book is that it walks you through writing your own unit testing framework demystifying them in the process.
Achmed
Achmed rated it 3 of 5 stars
Beck is a bit of a nut about TDD, but there is something to learn from his methods. This book is not deep at all.
Enrico
Enrico rated it 3 of 5 stars
Very interesting practical example of how to make software development successfull.
Chris
Chris rated it 5 of 5 stars
Shelves: technical
Another one of the very best books on how make great software.
Youin
Youin rated it 4 of 5 stars
Vladimir
Vladimir marked it as to-read
Marco Moura
Marco Moura marked it as to-read
« previous 1 3 4 5 6 7 8 9 17 18
There are no discussion topics on this book yet. Be the first to start one »
Test-Driven development by Example (Paperback)
Programování řízené testy (Paperback)

Goodreads is Hiring Engineers!

If you like books like these and love to build cool products, we may be looking for you.
Learn more »

Readers Also Enjoyed

Extreme Programming Explained: Embrace Change Planning Extreme Programming Implementation Patterns SmallTalk Best Practice Patterns JUnit Pocket Guide

Share This Book

Your website
Pin It