lib/pretty_face/templates/main.erb in pretty_face-0.5 vs lib/pretty_face/templates/main.erb in pretty_face-0.6

- old
+ new

@@ -5,55 +5,62 @@ <title>Test Results</title> </head> <body> - <div style="float: left;"> - <img src='images/<%= logo %>' width="200" /> - </div> - <div style="float: left;"> - <% if report.custom_suite_header? %> - <%= render "suite_header" %> - <% else %> - <%= render "main_header" %> - <% end %> - <span>Tests started: <%= report.start_time %></span> - <br /> - <span>Duration: <%= report.total_duration %></span> - </div> + <div style="float: left; clear:both;"> + <div class="header_logo"> + <img src='images/<%= logo %>' width="200" /> + </div> + <div class="header_description"> + <% if report.custom_suite_header? %> + <%= render "suite_header" %> + <% else %> + <%= render "main_header" %> + <% end %> - <div class="summary_body"> - <h2 class="summary">Summary</h2> - - <table cellspacing="0" cellpadding="7" class="summary"> + <table class="run_stats"> + <tr> + <td>started:</td> + <td>duration: </td> + </tr> + <tr> + <td><%= report.start_time %></td> + <td><%= report.total_duration %></td> + </tr> + </table> + </div> + </div> + <div class="summary_body"> + <table class="StatTable"> <tr> - <th></th> + <th>Summary</th> <th>Executed</th> - <th>Passed</th> - <th>Failed</th> - <th>Skipped</th> - <th>Undefined</th> - <th>Pending</th> - <th>Average<br/>Duration</th> + <th class="passed"><img src="images/table_passed.png"> Passed</th> + <th class="failed"><img src="images/table_failed.png">Failed</th> + <th class="skipped"><img src="images/table_skipped.png">Skipped</th> + <th class="undefined"><img src="images/table_undefined.png">Undefined</th> + <th class="pending"><img src="images/table_pending.png">Pending</th> + <th>Average Duration</th> </tr> - <tr> - <td class="summary_row_header">Scenarios</td> + <tr class="summary_row_header"> + <td>Scenarios</td> <td><%= report.scenario_count %></td> - <td><%= report.scenarios_summary_for :passed %></td> - <td><%= report.scenarios_summary_for :failed %></td> - <td><%= report.scenarios_summary_for :skipped %></td> - <td><%= report.scenarios_summary_for :undefined %></td> - <td><%= report.scenarios_summary_for :pending %></td> + <td><%= raw(report.scenarios_summary_for :passed) %></td> + <td><%= raw(report.scenarios_summary_for :failed) %></td> + <td><%= raw(report.scenarios_summary_for :skipped) %></td> + <td><%= raw(report.scenarios_summary_for :undefined) %></td> + <td><%= raw(report.scenarios_summary_for :pending) %></td> <td><%= report.scenario_average_duration(report.features) %></td> </tr> - <tr> - <td class="summary_row_header">Steps</td> + <tr class="summary_row_header"> + <td >Steps</td> <td><%= report.step_count %></td> - <td><%= report.steps_summary_for :passed %></td> - <td><%= report.steps_summary_for :failed %></td> - <td><%= report.steps_summary_for :skipped %></td> - <td><%= report.steps_summary_for :undefined %></td> - <td><%= report.steps_summary_for :pending %></td> + <td><%= raw(report.steps_summary_for :passed) %></td> + <td><%= raw(report.steps_summary_for :failed) %></td> + <td><%= raw(report.steps_summary_for :skipped) %></td> + <td><%= raw(report.steps_summary_for :undefined) %></td> + <td><%= raw(report.steps_summary_for :pending) %></td> <td><%= report.step_average_duration(report.features) %></td> </tr> </table> </div>