当前位置:首页 > 开发 > Web前端 > JavaScript > 正文

Javascript代码覆盖测试工具(Code Coverage Tool)

发表于: 2013-06-06   作者:darrenzhu   来源:转载   浏览:
摘要: Istanbul Karma (formerly Testacular) Blanket.js JSCover This is a code coverage tool that is the child of JSCoverage and utilizes a java server to take your javascript files, dynamically inject c
Istanbul
Karma (formerly Testacular)
Blanket.js
JSCover
This is a code coverage tool that is the child of JSCoverage and utilizes a java server to take your javascript files, dynamically inject coverage instrumentation code, and report the results in its UI.
Saga
http://timurstrekalov.github.io/saga/
JSCoverage
http://siliconforks.com/jscoverage/


下面的贴子列出来一些常见的javascript 代码覆盖工具:
http://stackoverflow.com/questions/53249/are-there-any-good-javascript-code-coverage-tools

下面这篇文章评估了Istanbul,Karma,Blanket.js和JSCover工具,作者给出来比较明确的结论。
http://blog.johnryding.com/post/46757192364/javascript-code-coverage-with-phantomjs-jasmine-and

结论是:不论你的测试代码是运行在浏览器中还是需要集成到其它环境工具中,JSCover都是最佳选择。
下面这篇文章介绍了如何集成Maven,PhantomJS和Jasmine来写javascript 单元测试

Maven, PhantomJS and Jasmine to write your JS Unit Testing:
http://blog.ivandemarino.me/2011/07/09/Maven-PhantomJS-and-Jasmine-to-write-your-JS-Unit-Testing

Javascript代码覆盖测试工具(Code Coverage Tool)

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号