Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

As a grad student, I haven't really written anything to test my code. Usually what we do is just run the code on some test input and if the output result looks okay or as we expected then we just assume the code is correct.

However, I always have this kind of paranoid feeling that some piece of the code might be incorrect. So I decided to learn some TDD approach to partially ensure the quality of the code production. I don't have TDD experience and I usually use JAVA & Python.

Could anyone point me to some good books/resources/ways to learn TDD?

share|improve this question

migrated from stackoverflow.com May 24 '11 at 1:35

closed as not constructive by Mark Trapp Nov 11 '11 at 8:46

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

2 Answers

up vote 11 down vote accepted

The classic test on TDD is

Kent walks you though several examples of writing tests as if he was sitting next to you.

Other excellent references are

But if you want ALL the gory details of unit testing, then look no further then

share|improve this answer

i highly recommend this one: http://www.growing-object-oriented-software.com/

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.