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.

Why Most Unit Testing is Waste

9 pointsby rasbtalmost 11 years ago

1 comment

rasbtalmost 11 years ago
It&#x27;s an interesting article with some interesting thoughts. However, unit tests are - for me - a crucial framework and also a main pillar in my project planning process: If unit tests are written before the actual code, it is immensely useful to define goals in terms of what you want the function - that you are going to write - should actually do and not do.<p>And especially throwing away passing unit tests is a waste, not the unit test itself. Eventually you, or someone else, wants to make edits to existing code. Unit tests are extremely useful to check if everything &quot;still works&quot;