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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

TDD love it or hate it, a question for HN Users

1 点作者 learnalist大约 15 年前
Assuming you are making an effort to do TDD or at least create unit tests once happy with a library, model, controller or just a script.<p>What methods do you employ to make sure the above stays in sync with the unit test.<p>Im sure, im not the first person to think about this, yet there is not any "best practices" I can find.<p>At present, im thinking.<p>db containing:<p>hash_of_the_file<p>name_of_the_unit_test<p>Then built into the test, or called ( not sure yet )<p>A way to check the db to make sure the hash_of_the_file still matches that in the db. Otherwise fail.<p>Any thoughts, or links would be well recieved.

暂无评论

暂无评论