如何衡量Polymer组件+ .js文件的通用覆盖率? [英] How to measure common coverage for Polymer components + .js files?
本文介绍了如何衡量Polymer组件+ .js文件的通用覆盖率?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用溶液中的所有.js
文件来测量聚合物组分的通用覆盖率(对于非组分测试,使用QUnit)?
How to measure common coverage for Polymer components with all .js
files in solution (for non-component tests QUnit is used)?
我尝试了 karma-coverage ,但它仅适用于.js
文件
I tried karma-coverage, but it works only for .js
files.
推荐答案
对于Polymer组件,有一种解决方案可以使用karma-coverage
来衡量通用覆盖率:拆分为.js文件并将其包含在组件中.示例是此处
For Polymer components there is a solution to measure common coverage with karma-coverage
: split to .js files and include it to components. Example is here
这篇关于如何衡量Polymer组件+ .js文件的通用覆盖率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文