简体   繁体   中英

Jasmine + Istanbul coverage not working

I'm working on lite javascript framework and my coverage statements can't reach up to 10% even though I'm sure when I'm doing my specs almost all of my functions are called.

If someone has an idea on what I'm doing wrong, I will be glad to hear it.

My project build: https://travis-ci.org/devoralive/doa

My project repository: https://github.com/devoralive/doa

My specs with jasmine: https://github.com/devoralive/doa/tree/master/specs/doa

And the sources: https://github.com/devoralive/doa/tree/master/src/doa

在尝试创建dist版本时,我已经解决了在我的requirejs模块中使用名称的问题。

did you take a look at your HTML coverage report ?

Only 3 of 22 functions are tested, in regard of travis trace... you may have to test all possibles outputs, the HTML report is more helpful than LCOV report in this case.

Regards,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM