TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

The Case Against Unit Tests

1 pointsby PuppyKhanalmost 3 years ago

1 comment

PuppyKhanalmost 3 years ago
The more complex the data and the more complex the test code, the harder it is to have a clear reliable unit test.<p>How do you ensure the tests themselves are accurate? Adding test cases as you encounter errors from newly revealed edge cases means the test didn’t work initially. Unit testing the unit tests is circular logic. You can manually test the unit test, same as you could manually test the code itself.<p>Typically, unit tests are so simple that bugs are few and easy to spot so this is a non issue, but that same argument can also be made for when the code itself does not need unit tests under the same circumstances.
评论 #32390791 未加载
评论 #32389866 未加载