Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

spm test coverage总是100% #911

Closed
airyland opened this issue Jul 29, 2014 · 1 comment
Closed

spm test coverage总是100% #911

airyland opened this issue Jul 29, 2014 · 1 comment

Comments

@airyland
Copy link

只计算了入口文件的,引用的src目录下的模块没有覆盖率。

@afc163
Copy link
Member

afc163 commented Jul 29, 2014

引入 serve-spm 后产生了一个问题。

计算覆盖率时跑的页面是:http://127.0.0.1:8000/tests/runner.html?cov ,然后会将 *.js 文件都 map 到 *-cov.js 文件上。由于引入 serve-spm 后,有了 *.handlebars.js 文件,因此被意外的 map 到了不存在的 *.handlebars-cov.js 文件上,导致用例实际上报错,最终覆盖率计算有较大偏差。

afc163 added a commit to afc163/spm that referenced this issue Jul 29, 2014
@afc163 afc163 closed this as completed Jul 29, 2014
sorrycc added a commit that referenced this issue Jul 29, 2014
fix coverage culculate error, #911
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants