re: What was your TDD aha moment? VIEW POST

re: You seem to be confusing unit testing with TDD. Unit tests are one type of tests, the bottom layer of the Test Pyramid, which also defines the Ser...

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