Jasmine的JavaScript代码覆盖率 [英] JavaScript code coverage with Jasmine

查看:144
本文介绍了Jasmine的JavaScript代码覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们计划在我们的项目中引入JavaScript单元测试,到目前为止,Jasmine似乎是更好的BDD单元测试框架之一。现在我想知道如何监控JavaScript代码的代码覆盖率。我们可以使用任何工具/插件吗?我们是Microsoft商店,使用.NET / MVC 4.

We are planning to introduce JavaScript unit testing in our project and so far Jasmine appears to be one of the better BDD unit testing frameworks for JavaScript. Now I am wondering how can we monitor code coverage of our JavaScript code. Are there any tools/plugins that we could use? We are a Microsoft shop and use .NET/MVC 4.

推荐答案

伊斯坦布尔代码覆盖工具。而且,由于有一个伊斯坦布尔/茉莉花的grunt插件,它应该可以使用茉莉花。

There is the Istanbul code coverage tool. And, as there is a grunt plugin for Istanbul/Jasmine it should work with Jasmine.

这篇关于Jasmine的JavaScript代码覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆