使用WCT的聚合物应用程序的代码覆盖率 [英] Code coverage of Polymer Application with WCT

查看:99
本文介绍了使用WCT的聚合物应用程序的代码覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拥有在Polymer中开发的应用程序以及使用WCT进行的单元测试。我想为此生成代码覆盖率报告。

I have the sapplication developed in Polymer and unit testing with WCT. I want to generate the code coverage report for that.

我尝试使用了伊斯坦布尔(web-component-tester-istanbul),但它不支持它,我使用的是聚合物版本 1.2

I tried with the istanbul(web-component-tester-istanbul), but it is not supporting it, I am using Polymer Version 1.2.

Karma + Grunt,但我无法生成代码覆盖率报告。

And I tried with Karma + Grunt, but I am not able to genrate the code coverage report.

有人可以告诉我如何使用Karma生成代码覆盖率吗?我在Google上搜索,但无法找到因果报应的WCT。

Can anybody tell me how we can generate code coverage with Karma? I search on google but not able to find WCT with Karma.

推荐答案

您可以暂时使用修改后的版本,直到原始伊斯坦布尔为止可以与Polymer一起使用。 wct-Istanbub

You can use the modified version for now till the original Istanbul is fixed to work with Polymer. wct-Istanbub

这篇关于使用WCT的聚合物应用程序的代码覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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