logoalt Hacker News

mrsmrtsstoday at 10:48 AM3 repliesview on HN

That's not how TDD works. You test the whole chain and all the components with tests and you can move from top to bottom with TDD, it's actually how you should do it.


Replies

SAI_Peregrinustoday at 2:29 PM

There's a disconnect between TDD using all sorts of tests (unit, integration, hardware-in-the-loop, in-field, etc.) and TDD using unit tests only. Unit tests provide the least value/line of test code of all types of tests. They're important, since they can catch bugs earlier than other sorts of tests that can't be caught by a type system, but not sufficient to catch most bugs.

dborehamtoday at 11:35 AM

It is however how most software testing is done.

show 1 reply