TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why Most Unit Testing is Waste

9 点作者 rasbt将近 11 年前

1 comment

rasbt将近 11 年前
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;