-
Notifications
You must be signed in to change notification settings - Fork 66
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 #19 from antoine-aumjaud/features/FITNESSE-PLUGIN-…
…ImproveResultGUI Improve result summary and captured details gui
- Loading branch information
Showing
5 changed files
with
91 additions
and
41 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
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
79 changes: 62 additions & 17 deletions
79
src/main/resources/hudson/plugins/fitnesse/FitnesseResults/body.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 |
---|---|---|
@@ -1,27 +1,72 @@ | ||
<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"> | ||
<table> | ||
<j:if test="${it.failCount > 0}"> | ||
<tr class="result-failed"><td><strong>Wrong and Exceptions: ${it.failCount}</strong></td></tr> | ||
<tr><th>Name</th><th>Right</th><th>Wrong</th><th>Ignored</th><th>Exceptions</th><th>Duration</th><th>Details-Captured</th><th>Details-Remote</th></tr> | ||
<j:forEach var="r" items="${it.failedTests}"> | ||
<tr><td>${it.toHtml(r)}</td><td>${r.passCount}</td><td>${r.failOnlyCount}</td><td>${r.ignoredCount}</td><td>${r.exceptionCount}</td><td>${r.duration}</td><td>${r.getDetailsLink()}</td><td>${r.getDetailRemoteLink()}</td></tr> | ||
</j:forEach> | ||
<div class="result-failed"><strong>Wrong and Exceptions: ${it.failCount}</strong> | ||
<table class="pane bigtable"> | ||
<tr> | ||
<td class="pane-header">Name</td> | ||
<td class="pane-header">Right</td> | ||
<td class="pane-header">Wrong</td> | ||
<td class="pane-header">Ignored</td> | ||
<td class="pane-header">Exceptions</td> | ||
<td class="pane-header">Duration</td> | ||
<td class="pane-header">Details-Captured</td> | ||
<td class="pane-header">Details-Remote</td> | ||
</tr> | ||
<j:forEach var="r" items="${it.failedTests}"> | ||
<tr> | ||
<td>${it.toHtml(r)}</td> | ||
<td>${r.passCount}</td><td>${r.failOnlyCount}</td><td>${r.ignoredCount}</td><td>${r.exceptionCount}</td> | ||
<td>${r.duration}</td> | ||
<td>${r.getDetailsLink()}</td><td>${r.getDetailRemoteLink()}</td> | ||
</tr> | ||
</j:forEach> | ||
</table> | ||
</div> | ||
</j:if> | ||
<j:if test="${it.skipCount > 0}"> | ||
<tr class="result-skipped"><td><strong>Ignored: ${it.skipCount}</strong></td></tr> | ||
<tr><th>Name</th><th>Right</th><th>Wrong</th><th>Ignored</th><th>Exceptions</th><th>Duration</th><th>Details-Captured</th><th>Details-Remote</th></tr> | ||
<j:forEach var="r" items="${it.skippedTests}"> | ||
<tr><td>${it.toHtml(r)}</td><td>${r.passCount}</td><td>${r.failOnlyCount}</td><td>${r.ignoredCount}</td><td>${r.exceptionCount}</td><td>${r.duration}</td><td>${r.getDetailsLink()}</td><td>${r.getDetailRemoteLink()}</td></tr> | ||
</j:forEach> | ||
<div class="result-skipped"><strong>Ignored: ${it.skipCount}</strong> | ||
<table class="pane bigtable"> | ||
<tr> | ||
<td class="pane-header">Name</td> | ||
<td class="pane-header">Ignored</td> | ||
<td class="pane-header">Duration</td> | ||
<td class="pane-header">Details-Captured</td> | ||
<td class="pane-header">Details-Remote</td> | ||
</tr> | ||
<j:forEach var="r" items="${it.skippedTests}"> | ||
<tr> | ||
<td>${it.toHtml(r)}</td> | ||
<td>${r.ignoredCount}</td> | ||
<td>${r.duration}</td> | ||
<td>${r.getDetailsLink()}</td><td>${r.getDetailRemoteLink()}</td> | ||
</tr> | ||
</j:forEach> | ||
</table> | ||
</div> | ||
</j:if> | ||
<j:if test="${it.passCount > 0}"> | ||
<tr class="result-passed"><td><strong>Right: ${it.passCount}</strong></td></tr> | ||
<tr><th>Name</th><th>Right</th><th>Wrong</th><th>Ignored</th><th>Exceptions</th><th>Duration</th><th>Details-Captured</th><th>Details-Remote</th></tr> | ||
<j:forEach var="r" items="${it.passedTests}"> | ||
<tr><td>${it.toHtml(r)}</td><td>${r.passCount}</td><td>${r.failOnlyCount}</td><td>${r.ignoredCount}</td><td>${r.exceptionCount}</td><td>${r.duration}</td><td>${r.getDetailsLink()}</td><td>${r.getDetailRemoteLink()}</td></tr> | ||
</j:forEach> | ||
<div class="result-passed"><strong>Right: ${it.passCount}</strong> | ||
<table class="pane bigtable"> | ||
<tr> | ||
<td class="pane-header">Name</td> | ||
<td class="pane-header">Right</td> | ||
<td class="pane-header">Ignored</td> | ||
<td class="pane-header">Duration</td> | ||
<td class="pane-header">Details-Captured</td> | ||
<td class="pane-header">Details-Remote</td> | ||
</tr> | ||
<j:forEach var="r" items="${it.passedTests}"> | ||
<tr> | ||
<td>${it.toHtml(r)}</td> | ||
<td>${r.passCount}</td> | ||
<td>${r.ignoredCount}</td> | ||
<td>${r.duration}</td> | ||
<td>${r.getDetailsLink()}</td><td>${r.getDetailRemoteLink()}</td> | ||
</tr> | ||
</j:forEach> | ||
</table> | ||
</div> | ||
</j:if> | ||
</table> | ||
</j: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
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 |
---|---|---|
@@ -1,60 +1,66 @@ | ||
/** | ||
* css for displaying fitnesse test results | ||
*/ | ||
#fitnesse_results table, #fitnesse_results td { | ||
border-color: rgb(119, 119, 119); | ||
border-style: solid; | ||
border-width: thin; | ||
border-collapse:collapse; | ||
} | ||
|
||
.header a:link { | ||
#fitnesse_results .header a:link { | ||
font-weight: bold; | ||
} | ||
|
||
.centered { | ||
#fitnesse_results .centered { | ||
margin: 5px; | ||
text-align: center; | ||
} | ||
|
||
.right { | ||
#fitnesse_results .right { | ||
float: right; | ||
} | ||
|
||
.left { | ||
#fitnesse_results .left { | ||
float: left; | ||
} | ||
|
||
.strike { | ||
#fitnesse_results .strike { | ||
text-decoration: line-through; | ||
} | ||
|
||
.code { | ||
#fitnesse_results .code { | ||
font-family: courier, 'Lucida Sans Typewriter', monospace; | ||
font-size: 16px; | ||
color: #004000; | ||
font-weight: bold; | ||
} | ||
|
||
.pass { | ||
#fitnesse_results .pass { | ||
background-color: #AAFFAA; | ||
} | ||
|
||
.fail { | ||
#fitnesse_results .fail { | ||
background-color: #FFAAAA; | ||
} | ||
|
||
.error { | ||
#fitnesse_results .error { | ||
background-color: #FFFFAA; | ||
} | ||
|
||
.ignore { | ||
#fitnesse_results .ignore { | ||
background-color: #CCCCCC; | ||
} | ||
|
||
.fit_stacktrace { | ||
#fitnesse_results .fit_stacktrace { | ||
font-size: 0.7em; | ||
} | ||
|
||
.fit_label { | ||
#fitnesse_results .fit_label { | ||
font-style: italic; | ||
color: #C08080; | ||
} | ||
|
||
.fit_grey { | ||
#fitnesse_results .fit_grey { | ||
color: #808080; | ||
} |