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

Unable to remove unused Coverage Metric Targets from Cobertura Report Graph

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Ubuntu 12.10
      Python 2.7
      Jenkins 1.527
      Cobertura Plugin 1.9.2

      I'm trying to obtain code coverage using python. I obtain this through Ned Batchelder's coverage.py, converting it to xml so that it can be displayed with the Cobertura plugin on Jenkins.

      It is my understanding that the only relevant metric is Lines, which is fine, however I'd like to remove Packages, Files, Classes, and Conditionals from the graph and I can't seem to do this. (Coverage.jpg)

      Only Lines is present under Publish Cobertura Coverage Report's advanced options (config.jpg)

      Is this possible? Am I just missing something?

        1. config.jpg
          config.jpg
          139 kB
        2. Coverage.jpg
          Coverage.jpg
          47 kB

          [JENKINS-19204] Unable to remove unused Coverage Metric Targets from Cobertura Report Graph

          JP Rosevear added a comment -

          Latest versions of createcoverage allow for branch coverage (--branch) structure the xml output for packages, classes. Methods seem to get an empty xml node, but its present.

          JP Rosevear added a comment - Latest versions of createcoverage allow for branch coverage (--branch) structure the xml output for packages, classes. Methods seem to get an empty xml node, but its present.

          Last two releases (separated by over a year) were by olivergondza so looks like the maintainer

          Stephen Connolly added a comment - Last two releases (separated by over a year) were by olivergondza so looks like the maintainer

            Unassigned Unassigned
            zonkey Neal Storey
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: