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

Highlight row in table with modules that does not satisfy provided coverage limit

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • cobertura-plugin
    • None
    • unix

      In the job configuration we can provide expected limits:

      For example:

      Coverage Metric Targets: Classes   80% 50%
        Lines   80% 50%
        [ADD]        

      So the idea is to select metric with minimal value and highlight in the report table whole row which does not satisfy some condition,
      for example below:

      Name Classes Conditionals Files Lines
      mod.allocator 100% 1/1 100% 4/4 50% 1/2 95% 95/100
      mod.submodule1 70% 7/10 100% 4/4 50% 1/2 40% 20/50
      mod.submodule2 100% 2/2 100% 9/9 100% 2/2 60% 30/50
      mod.submodule3 33% 2/6 100% 9/9 100% 2/2 77% 77/100

      (meaning values in bold)
      There would be red highlight for mod.submodule1 and mod.submodule3 and orange for mod.submodule2

      So rows would looks like: (unfortunately jira does not allow to have colored table)

      mod.allocator 100% 1/1 100% 4/4 50% 1/2 95% 95/100
      mod.submodule1 70% 7/10 100% 4/4 50% 1/2 40% 20/50
      mod.submodule2 100% 2/2 100% 9/9 100% 2/2 60% 30/50
      mod.submodule3 33% 2/6 100% 9/9 100% 2/2 77% 77/100

            Unassigned Unassigned
            dzialak dzialak
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: