2016-11-22 24 views
0

我試圖執行JSCover來檢查我的代碼[js文件]的覆蓋範圍。我已將jscover-file-maven-plugin添加到我的應用程序的pom.xml中。當我嘗試運行Maven安裝的應用程序,我的體型是越來越失敗,以下消息:目標com.github.tntim96的執行默認值:jscover-file-maven-plugin:1.0.19:jscover失敗:未定義jscoverage_serializeCoverageToJSON

[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" 

誰能解釋這裏發生了什麼在這裏輸入的代碼

回答

0

它看起來並不像任何測試?被運行。如果您不確定配置,則可以與https://github.com/tntim96/JSCover-samples上的工作示例進行比較。您也可以發佈您的配置和目錄結構。

你可以試試1.0.20-快照,它具有更多的日誌記錄(但需要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> 
相關問題