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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

If you have 90% unit test coverage, you probably have some stupid tests

2 点作者 zipfle超过 8 年前

1 comment

sethammons超过 8 年前
I feel that the post misses one major point in unit tests and coverage: you want to verify your error paths. Without mocks or injection of some sort, how are you to validate your error handling? I'm a big fan of integration tests because they make sure things work. But an integration test will have trouble forcing an error out of a dependency.