【问题标题】:Execution default of goal com.github.tntim96:jscover-file-maven-plugin:1.0.19:jscover failed: jscoverage_serializeCoverageToJSON is not defined目标执行默认 com.github.tntim96:jscover-file-maven-plugin:1.0.19:jscover failed: jscoverage_serializeCoverageToJSON is not defined
【发布时间】:2017-04-05 15:44:59
【问题描述】:

我正在尝试实施 JSCover 来检查我的代码 [js 文件] 的覆盖范围。我已将 jscover-file-maven-plugin 添加到我的应用程序的 pom.xml 中。当我尝试在应用程序上运行 maven install 时,我的构建失败并显示以下消息:

[INFO] --- jscover-file-maven-plugin:1.0.19:jscover (default) @ webUi ---
[INFO] Ran JSCover instrumentation
[INFO] BUILD FAILURE
[ERROR] Failed to execute goal com.github.tntim96:jscover-file-maven-      plugin:1.0.19:jscover (default) on project webUi: Execution default of goal   com.github.tntim96:jscover-file-maven-plugin:1.0.19:jscover failed: jscoverage_serializeCoverageToJSON is not defined"

谁能解释这里发生了什么?在这里输入代码

【问题讨论】:

    标签: jscoverage


    【解决方案1】:

    看起来没有运行任何测试。如果您不确定配置,可以与https://github.com/tntim96/JSCover-samples 的工作示例进行比较。您还可以发布您的配置和目录结构。

    您可以尝试具有更多日志记录(但需要 Java 8)的 1.0.20-SNAPSHOT,具有以下功能:

    <pluginRepositories>
      <pluginRepository>
        <id>Sonatype repository</id>
        <name>Sonatype's Maven repository</name>
        <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
      </pluginRepository>
    </pluginRepositories>
    

    【讨论】:

      猜你喜欢
      • 2018-07-30
      • 2014-06-22
      • 1970-01-01
      • 2018-07-31
      • 1970-01-01
      • 2016-06-21
      • 1970-01-01
      • 1970-01-01
      • 2016-10-05
      相关资源
      最近更新 更多