对于声纳示例合并-ut-it-multimodule-maven-jacoco示例我运行 mvn clean install声纳:声纳 并获得显示0%的以下输出,因为它找不到每个模块的目标目录中的类目录:
[INFO] [13:44:38.630] Sensor JaCoCoSensor...
[INFO] [13:44:38.630] Project coverage is set to 0% since there is no directories with classes.
[INFO] [13:44:38.630] Sensor JaCoCoSensor done: 0 ms
[INFO] [13:44:38.829] Execute decorators...
[INFO] [13:44:43.156] Store results in database
[INFO] [13:44:43.672] ANALYSIS SUCCESSFUL, you can browse http://vqsonar1.phx01.ebayads.com:80/dashboard/index/org.example.app-example:parent
[INFO] [13:44:43.776] Executing post-job class org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob
[INFO] [13:44:43.777] Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob
[INFO] [13:44:44.112] Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob
[INFO] [13:44:44.181] -> Keep one snapshot per day between 2013-12-03 and 2013-12-30
[INFO] [13:44:44.182] -> Keep one snapshot per week between 2013-01-01 and 2013-12-03
[INFO] [13:44:44.182] -> Keep one snapshot per month between 2009-01-06 and 2013-01-01
[INFO] [13:44:44.183] -> Delete data prior to: 2009-01-06
[INFO] [13:44:44.308] -> Clean JaCoCo Examples :: app-example :: parent [id=11975]
[INFO] [13:44:44.379] <- Clean snapshot 14448
[INFO] [13:44:53.292] -> Clean JaCoCo Examples :: app-example :: app [id=11976]
[INFO] [13:44:53.354] -> Clean JaCoCo Examples :: app-example :: app-it [id=11977]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] JaCoCo Examples :: app-example :: parent .......... SUCCESS [2:32.824s]
[INFO] JaCoCo Examples :: app-example :: app ............. SUCCESS [1.596s]
[INFO] JaCoCo Examples :: app-example :: app-it .......... SUCCESS [0.422s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
答案 0 :(得分:0)
消息显示0%的代码覆盖率但是当我查看网页时,它显示50%的测试覆盖率和80%的整体集成测试覆盖率。
答案 1 :(得分:0)