1
我在設置openclover 4.2.0與SonarQube 6.0一起使用時遇到困難。SonarQube沒有顯示openclover覆蓋率報告
下面是我在日誌中:
[INFO] [08:42:14.706] Sensor org.sonar.plugins.clover.CloverSensor
[INFO] [08:42:14.707] 2/2 source files have been analyzed
[INFO] [08:42:14.707] Parsing /workspace/topparent/biz/target/site/clover/clover.xml
[WARN] [08:42:14.709] Resource /workspace/topparent/biz/src/main/java/biz/BizClass.java was not found.
[WARN] [08:42:14.710] Resource /workspace/topparent/biz/src/main/java/integration/FirstClass.java was not found.
[INFO] [08:42:14.711] Matched files in report : 0%
[WARN] [08:42:14.711] 2 files in clover report did not match any file in SonarQube Index : /workspace/topparent/biz/src/main/java/biz/BizClass.java, /workspace/topparent/biz/src/main/java/integration/FirstClass.java,
[INFO] [08:42:14.711] Sensor org.sonar.plugins.clover.CloverSensor (done) | time=5ms
我不知道爲什麼沒有找到.java文件,路徑是正確的。我想我沒有看到這個覆蓋率報告:
Matched files in report : 0%
但是爲什麼?
三葉草中的路徑是相對還是絕對的? –
該屬性設置這樣 '-Dsonar.clover.reportPath =目標/站點/三葉草/ clover.xml' 和clover.xml路徑是絕對 https://pastebin.com/5A4mGdwh –
是路徑在三葉草報告中,相關的還是絕對的? –