Uploaded image for project: 'JaCoCo Plugin'
  1. JaCoCo Plugin
  2. JACOCO-12

Log if/which report is imported

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.1
    • Labels:
      None
    • Estimate:
      Hours

      Description

      When a project has no coverage in SonarQube, it's currently not easy to understand why by looking at the logs:

      13-Feb-2020 11:43:44    [INFO] Sensor JaCoCo XML Report Importer [jacoco]
      13-Feb-2020 11:43:44    [INFO] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
      

      JacocoPlugin applies the following logic to decide which report to import:

      • files specified by the "sonar.coverage.jacoco.xmlReportPaths" property if it exists
      • Or "target/site/jacoco/jacoco.xml" and "build/reports/jacoco/test/jacocoTestReport.xml"

      It should be possible to understand by reading the INFO logs: if JacocoPlugin has successfully imported something (and which files) or successfully imported nothing (what was looked up).

        Attachments

          Activity

            People

            Assignee:
            quentin.jaquier Quentin Jaquier
            Reporter:
            alban.auzeill Alban Auzeill
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: