-
New Feature
-
Resolution: Unresolved
-
Major
-
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 |
[JENKINS-8574] Highlight row in table with modules that does not satisfy provided coverage limit
Description |
Original:
Motivation: We can easily find the module that does not satisfy out requirements. |
New:
In the job configuration we can provide expected limits: For example: | Coverage Metric Targets: | Classes | | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-80plus.gif! | 80% | | 50% | | | Lines | | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-00to19.gif! | 80% | 50% | | | [ADD] | | | | | So the idea is to 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|33% 2/6|100% 4/4|50% 1/2|96% 52/54| |mod.submodule2|100% 2/2|100% 9/9|100% 2/2|98% 49/50| |mod.submodule3|33% 2/6|100% 9/9|100% 2/2|77% 77/100| There would be {color:red}red{color} highlight for mod.submodule1 and mod.submodule3 and {color:orange}orange{color} for mod.submodule2 |
Description |
Original:
In the job configuration we can provide expected limits: For example: | Coverage Metric Targets: | Classes | | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-80plus.gif! | 80% | | 50% | | | Lines | | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-00to19.gif! | 80% | 50% | | | [ADD] | | | | | So the idea is to 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|33% 2/6|100% 4/4|50% 1/2|96% 52/54| |mod.submodule2|100% 2/2|100% 9/9|100% 2/2|98% 49/50| |mod.submodule3|33% 2/6|100% 9/9|100% 2/2|77% 77/100| There would be {color:red}red{color} highlight for mod.submodule1 and mod.submodule3 and {color:orange}orange{color} for mod.submodule2 |
New:
In the job configuration we can provide expected limits: For example: | Coverage Metric Targets: | Classes | | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-80plus.gif! | 80% | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-00to19.gif! | 50% | | | Lines | | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-80plus.gif! | 80% | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-00to19.gif! |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 {color:red}red{color} highlight for mod.submodule1 and mod.submodule3 and {color:orange}orange{color} for mod.submodule2 |
Description |
Original:
In the job configuration we can provide expected limits: For example: | Coverage Metric Targets: | Classes | | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-80plus.gif! | 80% | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-00to19.gif! | 50% | | | Lines | | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-80plus.gif! | 80% | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-00to19.gif! |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 {color:red}red{color} highlight for mod.submodule1 and mod.submodule3 and {color:orange}orange{color} for mod.submodule2 |
New:
In the job configuration we can provide expected limits: For example: | Coverage Metric Targets: | Classes | | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-80plus.gif! | 80% | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-00to19.gif! | 50% | | | Lines | | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-80plus.gif! | 80% | !https://hudson.apache.org/hudson/static/f6d7729d/images/16x16/health-00to19.gif! |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) {panel:bgColor=#FFFFFF|borderStyle=none}|mod.allocator|100% 1/1|100% 4/4|50% 1/2|95% 95/100|{panel}{panel:bgColor=#FFDFDF|borderStyle=none}|mod.submodule1|70% 7/10|100% 4/4|50% 1/2|40% 20/50|{panel}{panel:bgColor=#FFEFDF|borderStyle=none}|mod.submodule2|100% 2/2|100% 9/9|100% 2/2|60% 30/50|{panel}{panel:bgColor=#FFDFDF|borderStyle=none}|mod.submodule3|33% 2/6|100% 9/9|100% 2/2|77% 77/100|{panel} |
Assignee | Original: dzialak [ dzialak ] | New: Stephen Connolly [ stephenconnolly ] |
Assignee | Original: Stephen Connolly [ stephenconnolly ] | New: Oliver Gondža [ olivergondza ] |
Workflow | Original: JNJira [ 138685 ] | New: JNJira + In-Review [ 174959 ] |
Assignee | Original: Oliver Gondža [ olivergondza ] |
Last two releases (separated by over a year) were by olivergondza so looks like the maintainer