Test Drive

In which book would you advise you to learn test-based development? Preferably linguistic agnostic.

+50
tdd testing
Apr 28 '09 at 9:35
source share
7 answers

Growing object-oriented software based on Addison-Wesley benchmarking concerns mocking frameworks, notably JMock and Hamcrest.

From the description of the book:

Steve Freeman and Nat Price describe the processes they use, the design principles that they strive for, and some tools that help them do their job. In an advanced, well-developed example, you will learn how TDD works at several levels, using tests to control functions and the object-oriented structure of the code, and also using Mock Objects to detect and subsequently describe the relationships between objects. In addition, the book systematically addresses the challenges that development teams face with TDD β€” from integrating TDD into your processes to testing your most complex functions.

EDIT: I am now reading Work Effectively with Michael Feathers Legacy Code , which is pretty good. From the description of the book:

  • Understanding the software change mechanism: adding features,
    error correction, design improvement, performance optimization
  • Getting obsolete code in a test harness
  • Writing tests to protect you from new problems
  • This book also includes a catalog of twenty-four dependency-breaking methods that will help you work with program elements in isolation and make safer changes.

I already read it, this is one of the best programming books I've ever read (I personally think it should be called "Refactoring to Testability" - it describes the processes that make your code testable). Because the code under test is good code.

+12
Feb 16 '11 at 22:05
source share

For me, this is the best:

+8
Apr 28 '09 at 9:38
source share

A fairly recent reasonably written book, The Art of Unit Testing . I am surprised that was not mentioned here.

+6
May 23 '09 at 1:41
source share

Astels' book is a good introduction, Beck's book is good at basic concepts, Lasse Koskel has an innovation (Test Driven: TDD and Acceptance TDD for Java developers) . Osherov’s book , he said, is about unit testing, not TDD. I am not sure that the TDD Pragmatists book has become as old as their original book.

In most cases, this is Java or C #, but you have to figure it out yourself.

+4
May 28 '09 at 1:49 pm
source share

I am a big fan of almost anything from Pragmatic Bookshelf , but these two really helped me get to the point:

Pragmatic programmer: from Journeyman to Master . It is very good. I would recommend it to any developer.

Pragmatic module testing in C # with NUnit, 2nd Edition . Do not let the title scare you. The concepts are pretty linguistic, as well as C # examples.

+2
May 05 '09 at 12:45 a.m.
source share
+1
Apr 28 '09 at 23:47
source share



All Articles