(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43563039

Hacker News 上的一个帖子讨论了一篇题为“你没有时间不去测试”的文章,这篇文章的起因是一位首席工程师声称由于测试覆盖率低、现有测试不可靠以及缺乏集成测试,他们没有时间进行自动化测试。 一位评论者 (jt2190) 质疑新的自动化测试是否能够改善目前不足的状态。另一位 (billyp-rva) 专注于测试的定义,将其指定为代码,并指出作者没有理由地排除了手动测试。第三位 (sherdil2022) 质疑未经测试的代码如何被认为是合格的工程,认为充分测试是常识,即使承认可能存在过度测试的情况。该帖子突出了在资源有限和现有代码质量问题的情况下,关于自动化测试的必要性和有效性的争论。

相关文章

原文
Hacker News new | past | comments | ask | show | jobs | submit login
You Don't Have Time Not to Test (medium.com/dougdonohoe)
6 points by attila226 1 hour ago | hide | past | favorite | 3 comments










> “We don’t have time to [write automated] test[s],” stated the principal engineer… This was in response to my candid observation that test coverage was low, existing tests didn’t always run locally for mysterious reasons, integration tests were non-existent, and pull requests could merge without passing the few tests that did exist.

Given the state of the existing automated tests, perhaps the Principal Engineer is correct… Why would the new automated tests be any better?



> So, what is a test? To me, a test is a chunk of code...

This obviously excludes manual testing, and the author doesn't explain why he is excluding them.



How is it even proper engineering if code is not tested? Granted one can go overboard with testing, but isn't it common sense to ensure code is adequately tested?






Join us for AI Startup School this June 16-17 in San Francisco!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



Search:
联系我们 contact @ memedata.com