logoalt Hacker News

ForHackernewsyesterday at 9:52 PM1 replyview on HN

Unit tests vs acceptance tests. You shouldn't be afraid to throw away unit tests if the implementation changes, and acceptance tests should verify behavior at API boundaries, ignoring implementation details.


Replies

hinkleytoday at 1:00 AM

BDD helps with this as it can allow you to get the setup out of the tests making it even cheaper for someone to yeet a defunct test.