This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from felipebn/master
Add coverage summary on build status/result page
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/resources/hudson/plugins/jacoco/JacocoBuildAction/summary.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" | ||
xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" | ||
xmlns:f="/lib/form" xmlns:i="jelly:fmt"> | ||
<link rel="stylesheet" href="${rootURL}/plugin/jacoco/css/style.css"/> | ||
<t:summary icon="/plugin/jacoco/icons/jacoco-48x48.png"> | ||
<b>Jacoco - ${%Overall Coverage Summary}</b> | ||
<table class="pane" border="1" style="width: 95%;margin-left: 5%;"> | ||
<j:forEach var="coverageRatio" items="${it.coverageRatios}"> | ||
<tr> | ||
<th style="background-color:#e0e0e0;width:30%">${coverageRatio.key.type}</th> | ||
<td style="width:15%;text-align:center" class="${coverageRatio.value ? 'red':''}">${coverageRatio.key.percentage}%</td> | ||
<td><div class="percentgraph"><div style="width:${100 - coverageRatio.key.percentage}%" class="redbar"></div></div></td> | ||
</tr> | ||
</j:forEach> | ||
</table> | ||
</t:summary> | ||
</j:jelly> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.