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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Tips for Unit Testing

4 点作者 bhb将近 17 年前

1 comment

wastedbrains将近 17 年前
I still haven't gone fully TDD. I do find myself using it on many of the little pieces of code I write before I ever try to integrate it into the full app. It is just a lot faster to verify each little piece separately does exactly what you want and then connect all the pieces together, than just manually starting from the beginning of integration and seeing how far it makes it before a bug takes halts the progress. Working this way when you integrate the pieces it is awesome to find that most of the time it works all the way through the first time.