【问题标题】:Istanbul: generate code cobertura report with mocha伊斯坦布尔:使用 mocha 生成代码 cobertura 报告
【发布时间】:2014-01-27 20:37:25
【问题描述】:

Istanbul 运行我的 mocha 测试时无法生成 cobertura 报告。

istanbul report cobertura cover _mocha test

cobertura-coverage.xml 中的报告为空。

请注意,如果我在没有报告选项 (istanbul cover _mocha test) 的情况下运行,一切正常,我可以在控制台中看到覆盖率摘要。

任何想法我做错了什么?

【问题讨论】:

  • 我实际上让它工作分为两个命令istanbul cover _mocha test; istanbul report cobertura我不确定是否有更好的方法

标签: javascript code-coverage mocha.js istanbul


【解决方案1】:

纽约市

nyc --reporter cobertura mocha test

【讨论】:

    【解决方案2】:

    你错过了--

    istanbul cover --report cobertura _mocha test
    

    【讨论】:

    【解决方案3】:

    正确的是……

    istanbul cover --report cobertura _mocha tests
    

    封面后跟--report cobertura

    【讨论】:

      猜你喜欢
      • 2016-08-31
      • 2014-05-15
      • 2015-08-26
      • 2013-12-21
      • 2020-08-20
      • 2018-05-25
      • 1970-01-01
      • 1970-01-01
      • 2020-06-27
      相关资源
      最近更新 更多