Skip to content

Commit

Permalink
Show the phase checks in the HTML report
Browse files Browse the repository at this point in the history
Show all the phase checks in the phase table. Do not hide them by
default as it's done with general result checks.
  • Loading branch information
seberm committed Aug 5, 2024
1 parent 9fea1d8 commit d054f5c
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tmt/steps/report/html/template.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
}
#results table.check,
#results table.phase-check,
#results table.phase {
width: 100%;
background: #dadada;
Expand Down Expand Up @@ -96,17 +97,20 @@
}
#results tr.check,
/* #results tr.phase-check, // Do not hide phase checks by default */
#results tr.phase {
font-size: 90%;
display: none;
}
#results tr.check td.result,
#results tr.phase-check td.result,
#results tr.phase td.result {
width: 5ex;
}
#results tr.check td.name,
#results tr.phase-check td.name,
#results tr.phase td.name {
color: #888;
padding-left: 5ex;
Expand Down Expand Up @@ -331,6 +335,35 @@ Context:
{% endfor %}
</td>
</tr>
{% if phase.check %}
<tr class="phase-check" id="phase-check-{{ loop.index }}">
<td colspan="3">
<h3>Phase checks</h3>
<table class="check">
<thead>
<tr>
<th>Result</th>
<th>Name</th>
<th>Logs</th>
</tr>
</thead>
{% for check in phase.check %}
<tr>
<td class="result {{ check.result.value | e }}">{{ check.result.value | e }}</td>
<td class="name">{{ check.name | e }} ({{ check.event.value }})</td>
<td class="log">
{% for log in check.log %}
<a href="{{ base_dir | linkable_path | urlencode }}/{{ log | urlencode }}">{{ log | basename }}</a>
{% else %}
-
{% endfor %}
</td>
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endif %}
{% endfor %}
</table>
</td>
Expand Down

0 comments on commit d054f5c

Please sign in to comment.