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

Prototype integration between Code Coverage API and Cobertura plugin

      Idea: simplify Cobertura plugin by using APIs and features provided by Code Coverage API Plugin.

      Idea:

      • Cobertura plugin benefits from features we offer in the plugin
      • There is no breaking changes
      • jeffpearce proposed to implement reporter and deprecate/remove old data model
      • Oleg: Migration logic for existing data

      Acceptance criteria:

      • Transparent to users:
        • cobertura() Pipeline step and Cobertura Build Step start contributing to Code Coverage API data model
        • existing data is compatible or automatically migrated

      We need to design this ticket. Open questions:

      • How do we implement it? Maybe switches to enable API/UI? Duplicate data in the in-memory model? ...
      • Could we simplify the data model somehow
      • Which parts of Cobertura plugin do we deprecate?

          [JENKINS-51424] Prototype integration between Code Coverage API and Cobertura plugin

          Oleg Nenashev added a comment - - edited

          Other approach:

          • Offer CodeCoverageAPIAction interface to Code Coverage API with "toNewModel()"
          • Each action should be able to produce new data model using this method
          • CodeCoverageAPI scans for all such CodeCoverageAPIAction reports in builds

          Tricky thing: data cachiing

          Oleg Nenashev added a comment - - edited Other approach: Offer CodeCoverageAPIAction interface to Code Coverage API with "toNewModel()" Each action should be able to produce new data model using this method CodeCoverageAPI scans for all such CodeCoverageAPIAction reports in builds Tricky thing: data cachiing

          Jeff Pearce added a comment -

          Released in version 1.13

          Jeff Pearce added a comment - Released in version 1.13

            cizezsy Shenyu Zheng
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: