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

Analyze JaCoCo's xml report instead of exec-files

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • jacoco-plugin
    • None

      There are some benefits on using xml reports instead of exec-files

      1. no dependency of jacoco.jar needed, so reports will be always actual no matter what jacoco version created them (currently reports created by newer version of jacoco do not take any effect because jacoco-plugin's dependency is older);
      2. xml report contains all the information needed not to lose in the functionality of the plugin; report contains class, package, method coverage and their name - everything that is necessary for the plugin to work;
      3. in case of xml report - this report can be generated by the build tool or even by the jacoco's cli giving user more flexibility in configuring his build pipeline
      4. xml reports from any other coverage tools (scoverage, cobertura, etc.) can be easily converted into jacoco's xml format and get all the benefits of this plugin (reporting, dashboard views, etc.)

          [JENKINS-56210] Analyze JaCoCo's xml report instead of exec-files

          centic added a comment -

          There has been some discussion on this before, but unfortunately nobody took the task of actually working on it so it will likely not happen until someone invest the necessary time to contribute and maintain such a feature (ideally as non-default option first to not break all existing installations).

          centic added a comment - There has been some discussion on this before, but unfortunately nobody took the task of actually working on it so it will likely not happen until someone invest the necessary time to contribute and maintain such a feature (ideally as non-default option first to not break all existing installations).

          this will help with our gradle build where we are using the kover plugin and the intellij engine. That engine doesn't produce an exec file but it does produce an xml file. 

          Nikolay Metchev added a comment - this will help with our gradle build where we are using the kover plugin and the intellij engine. That engine doesn't produce an exec file but it does produce an xml file. 

            ognjenb Ognjen Bubalo
            szhem Sergey Zhemzhitsky
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: