re: What was your TDD aha moment? VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION

This is all good - one quick clarification: a Unit test does not necessarily test a function/class/object/whatever.

It tests a unit of behaviour.

TDD does not mean adding one test per function/class/whatever. It should mean writing a test that describes the behaviour of your program, and then writing code that implements that behaviour.

code of conduct - report abuse