Skip to content

Commit

Permalink
show number of cases in the scenario headline of the HTML report (#26)
Browse files Browse the repository at this point in the history
Jan Schäfer committed Sep 21, 2014

Verified

This commit was signed with the committer’s verified signature.
rouault Even Rouault
1 parent 43d2fa9 commit dec17cb
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -43,7 +43,12 @@ public void visit( ScenarioModel scenarioModel ) {

writer.print( " " + WordUtil.capitalize( scenarioModel.description ) );

int numberOfCases = scenarioModel.getScenarioCases().size();
if( numberOfCases > 1 ) {
writer.print( "<span class='badge count'>" + numberOfCases + "</span>" );
}
utils.writeDuration( scenarioModel.getDurationInNanos() );

writer.println( "</h3>" );

writeTagLine( scenarioModel );
Original file line number Diff line number Diff line change
@@ -427,6 +427,16 @@ h1 {
vertical-align: middle;
}

.count {
background-color: #aaa;
color: white;
border-radius: 7px;
font-size: 10px;
margin-right: 0em;
margin-left: 0.5em;
background-color: gray;
}

.stages {
margin: 0;
margin-top: 10px;

0 comments on commit dec17cb

Please sign in to comment.