logoalt Hacker News

MoreQARespecttoday at 4:20 PM1 replyview on HN

That is a flaw with unit tests written at far too low a level, not with TDD.

You would have the same problem if you wrote tests like that after the code.

TDD has no opinion about the level at which you wrote your test, it just assumes it's the correct one.

This is the number one biggest misconception about TDD which I keep seeing repeated on hacker news.

https://news.ycombinator.com/item?id=46810793

https://news.ycombinator.com/item?id=45113016


Replies

pjmlptoday at 6:08 PM

TDD for UI effects?

show 1 reply