JSunit 可用性
JSunit 真的是 Junit 到 Javascript 的直接移植吗?我听说过,但我想知道为什么我的公司不使用它。我的公司有很多聪明的人,所以如果我们不使用它,我想知道 Jsunit 作为 JavaScript 测试工具是否存在任何重大问题。
我们将不胜感激。
谢谢!
Is JSunit really a direct port of Junit to Javascript? So I have heard, but I am wondering why my company is not using it. My company has lots of smart minds, so If we are not using it I wonder if there are any major issues with Jsunit as a javascript test harness.
Input would be much appreciated.
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
JsUnit 是 JUnit for Javascript 的改编版本,而不是直接移植。它非常好,但已经显示出它的年龄并且不再积极开发。
查看 Jasmine —— 一个现代且受到积极支持的替代方案,由编写 JsUnit 的同一个人编写。
JsUnit is an adaptation of JUnit for Javascript, not a direct port. It's very nice, but is showing its age and is no longer actively developed.
Check out Jasmine -- for a modern and actively supported alternative, written by the same people who wrote JsUnit.
你是说这个 jsunit 吗?
也许你们公司的聪明人甚至不知道它的存在(实际上,学习这些东西是我读到这些的原因之一)。也许他们还没有时间评估它的实际使用和部署,或者尝试其他东西。
该工具并不是部署测试规则所需的唯一工具:您需要自动测试重放、跟踪偏差和进度的报告、测试方法、最佳实践。
您还需要记录目标以及对团队进行适当的培训。这就是为什么一般情况下,拥有聪明人的公司不会在每次出现新工具时就更换工具,有时也不会立即部署所有最佳实践。
但总的来说,这并不妨碍个人为自己部署它们,尝试工具,甚至成功地使整个公司发展并使用更好的流程,最终构建(甚至)更好的产品。
You mean this jsunit?
Maybe the smart guy's at your company do not even know it exists (actually, learning such things is one of the reasons I read SO). Maybe they haven't yet had the time to evaluate this for real use and deployment, or play with something else.
The tool is not the only thing that is needed to deploy a testing discipline: you need automated test replay, reporting to track deviations and progress, test methodologies, best practices.
You also need documented objectives, and proper training for the teams. that is why in general companies with smart guys do not change tools every time a new tool is around, and sometime do not deploy all best practices immediately.
But in general this does not prevent individuals to deploy them for themselves, try tools, and even succeed to make the whole company evolve and use better processes, eventually building (even) better products.