Edgewall Software

source: trunk/bitten/templates/bitten_summary_tests.html

Last change on this file was 710, checked in by osimons, 15 years ago

0.6dev: Inline display of error and failure details in 'Test Results' summary table.

Thanks to Mat Booth for patch! Closes #205.

  • Property svn:executable set to *
File size: 1.3 KB
Line 
1<!DOCTYPE html
2    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml"
5      xmlns:py="http://genshi.edgewall.org/" py:strip="">
6 <body py:strip="">
7  <h3>Test Results</h3>
8  <table class="listing tests">
9   <thead><tr>
10    <th>Test Fixture</th><th>Total</th>
11    <th>Failures</th><th>Ignores</th><th>Errors</th>
12   </tr></thead>
13   <tbody><tr py:for="item in data.fixtures"
14              class="${item.failures and 'failed' or 'success'}">
15    <th>
16      <span class="fixture" />
17      <py:choose test="">
18        <a py:when="item.href" href="$item.href">$item.name</a>
19        <span py:when="not item.href">$item.name</span>
20      </py:choose>
21      <p class="details" py:for="failure in item.failures">$failure.name ($failure.status):<br />
22        <span>$failure.traceback</span>
23      </p>
24    </th>
25    <td>${item.num_success + item.num_failure + item.num_error + item.num_ignore}</td>
26    <td>$item.num_failure</td>
27    <td>$item.num_ignore</td>
28    <td>$item.num_error</td>
29   </tr></tbody>
30   <tbody class="totals"><tr py:with="totals = data.totals">
31    <th>Total</th>
32    <td>${totals.success + totals.failure + totals.ignore + totals.error}</td>
33    <td>$totals.failure</td>
34    <td>$totals.ignore</td>
35    <td>$totals.error</td>
36   </tr></tbody>
37  </table>
38 </body>
39</html>
Note: See TracBrowser for help on using the repository browser.