Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25616

Support for coverage.xml generated by Android tools

    XMLWordPrintable

Details

    • Improvement
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • jacoco-plugin
    • None
    • Android Gradle project

    Description

      When running gradle createDebugCoverageReport on an Android Gradle project, the built-in JaCoCo support builds an HTML report and an XML report.
      As far as I know it is not possible to use this with Jenkins CI at the moment, because the plug-in wants the .exec file.

      The report XML file starts with the following lines (looks like a standard format?):

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <!DOCTYPE report PUBLIC "-//JACOCO//DTD Report 1.0//EN" "report.dtd">
      <report name="debug">
      <sessioninfo id="unknownhost-a0d58b54" start="1415952183361" dump="1415952207146"/>

      I would love to see support for this in the Jenkins CI JaCoCo plug-in.

      https://github.com/jenkinsci/jacoco-plugin/issues/49

      Attachments

        Issue Links

          Activity

            arnom Arno Moonen added a comment -

            That is not really a solution, betterswc.
            It does not make sense to parse the data again, if the report has already been generated.

            As you can tell, several people on GitHub also have mentioned this to be something they would like to see.

            arnom Arno Moonen added a comment - That is not really a solution, betterswc . It does not make sense to parse the data again, if the report has already been generated. As you can tell, several people on GitHub also have mentioned this to be something they would like to see.
            centic centic added a comment -

            JENKINS-28652 will provide a way to parse the XML report instead of the binary exec file.

            centic centic added a comment - JENKINS-28652 will provide a way to parse the XML report instead of the binary exec file.
            wbagdon Bill Bagdon added a comment -

            still not seeing a way to directly use a generated XML report

            wbagdon Bill Bagdon added a comment - still not seeing a way to directly use a generated XML report
            centic centic added a comment -

            JENKINS-28652 was solved in a different way due to lack of dev-time, so unless someone with enough time and skill steps in, this likely won't be available anytime soon, sorry.

            centic centic added a comment - JENKINS-28652 was solved in a different way due to lack of dev-time, so unless someone with enough time and skill steps in, this likely won't be available anytime soon, sorry.
            mrichar2 Mark R added a comment -

            Any progress with this? The incompatibility between the old and new jacoco exec files will require a transition period where old and new coverage results can be understood. One way to do this would be to consume XML in the Jenkins plugin.

            mrichar2 Mark R added a comment - Any progress with this? The incompatibility between the old and new jacoco exec files will require a transition period where old and new coverage results can be understood. One way to do this would be to consume XML in the Jenkins plugin.

            People

              ognjenb Ognjen Bubalo
              arnom Arno Moonen
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: