summary.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <html>
  2. <head>
  3. <style>
  4. th {
  5. text-transform: uppercase;
  6. }
  7. th, td {
  8. padding: 5px;
  9. }
  10. table {
  11. border-collapse: collapse;
  12. }
  13. span.test_status {
  14. font-weight: bold;
  15. }
  16. span.test_fail {
  17. color: red;
  18. }
  19. span.test_pass {
  20. color: green;
  21. }
  22. span.test_mute {
  23. color: blue;
  24. }
  25. table > tbody > tr > td:nth-child(2),
  26. table > tbody > tr > td:nth-child(3),
  27. table > tbody > tr > td:nth-child(4) {
  28. text-align: center;
  29. }
  30. </style>
  31. </head>
  32. <body>
  33. {% for status in status_order %}
  34. <h1 id="{{ status.name}}">{{ status.name }} ({{ tests[status] | length }})</h1>
  35. <table style="width:100%;" border="1">
  36. <thead>
  37. <tr>
  38. <th>test name</th>
  39. <th>elapsed</th>
  40. <th>status</th>
  41. {% if status in has_any_log %}
  42. <th>LOG</th>
  43. {% endif %}
  44. </tr>
  45. </thead>
  46. <tbody>
  47. {% for t in tests[status] %}
  48. <tr>
  49. <td>{{ t.full_name }}</td>
  50. <td><span title="{{ t.elapsed }}s">{{ t.elapsed_display }}</span></td>
  51. <td>
  52. <span class="test_status test_{{ t.status_display }}">{{ t.status_display }}</span>
  53. </td>
  54. {% if status in has_any_log %}
  55. <td>
  56. {% if t.log_urls %}
  57. {% for log_name, log_url in t.log_urls.items() %}
  58. <a href="{{ log_url }}">{{ log_name.upper() }}</a>{% if not loop.last %} | {% endif %}
  59. {% endfor %}
  60. {% else %}
  61. &nbsp;
  62. {% endif %}
  63. </td>
  64. {% endif %}
  65. </tr>
  66. {% endfor %}
  67. </tbody>
  68. </table>
  69. {% endfor %}
  70. </body>
  71. </html>