logoalt Hacker News

ForHackernewslast Tuesday 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

hinkleyyesterday 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.