1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/report-generators/templates/unit_test.rhtml
2010-07-20 14:38:44 +00:00

24 lines
725 B
Plaintext

<table width="95%" cellspacing="2" cellpadding="5" border="0" class="stripes">
<tr><th>Tests passed</th><th>Tests failed</th></tr>
<tr><td class="pass"><%= total_passed %></td><td <%= total_failed == 0 ? "" : "class=\"fail\""%>><%= total_failed %></td></tr>
</table>
<% schedules.each do |s| %>
<h3><%= s.dir.sub('./unit-tests/', '') %></h3>
<table width="95%" cellspacing="2" cellpadding="5" border="0" class="stripes">
<tr><th>Test</th><th>Result</th></tr>
<% s.schedules.each do |t| %>
<tr>
<td>
<a href="detail_<%= mangle(t.desc) %>.html"><%= t.desc %></a>
</td>
<% if t.status.success? %>
<td class="pass">pass</td>
<% else %>
<td class="fail">fail</td>
<% end %>
</tr>
<% end %>
</table>
<% end %>