前言

mocha生成测试率报告,不需要繁杂的配置,配置istanbul直接使用就ok。

依赖工具

  • istanbul
  • mocha

测试命令

node ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly
node --harmony-generators node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly

注意事项


怀疑真爱的流浪者jason
923 声望62 粉丝

For every single second in life, I want to fight with the monster deep within my heart , and I want to win.........