我正在尝试实现插件来检查我的代码js文件的覆盖率,我已经将JSCover -file-maven-jscover添加到了我的应用程序的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"有人能解释这里发生了什么吗?在这里输入代码
发布于 2016-11-23 06:16:39
看起来没有运行任何测试。如果您不确定配置,可以与https://github.com/tntim96/JSCover-samples上的工作示例进行比较。您还可以发布您的配置和目录结构。
您可以尝试使用1.0.20-SNAPSHOT,它有更多的日志记录(但需要Java 8),如下所示:
<pluginRepositories>
<pluginRepository>
<id>Sonatype repository</id>
<name>Sonatype's Maven repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</pluginRepository>
</pluginRepositories>https://stackoverflow.com/questions/40733861
复制相似问题