Skip to content

Update HTML report plugin to add a Note column for subresults #4565

@matusmarhefka

Description

@matusmarhefka

Currently, when using result:respect (https://tmt.readthedocs.io/en/stable/spec/tests.html#spec-tests-result), the TMT HTML report doesn't display a Note column for subresults from tmt-report-results.yaml (file that the tmt-report-result command writes to). Only Result, Name and Logs columns are present (

<thead>
<tr>
<th>Result</th>
<th>Name</th>
<th>Logs</th>
</tr>
</thead>
{% for subresult in result.subresult %}
<tr>
<td class="result {{ subresult.result.value | e }}">{{ subresult.result.value | e }}</td>
<td class="name">{{ subresult.name | e }}</td>
<td class="log">
{% for log in subresult.log %}
<a href="{{ base_dir | linkable_path | urlencode }}/{{ log | urlencode }}">{{ log | basename }}</a>
{% else %}
-
{% endfor %}
</td>
</tr>
). Please extend the HTML template to also include Note column, we use it to provide more details for the subresults and we want to migrate away from using result:custom.

The following moved in #4573 as it represents another feature request:

Also it seems that the main test result's Note column content can't be modified when using result:respect. Would it be possible to either extend tmt-report-result to accept a note as an argument which would be added to the main result or provide some other mean for that, for example, using a special name: / subresult (as for result:custom)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area | resultsRelated to how tmt stores and shares resultsplugin | htmlThe html display pluginstep | reportStuff related to the report step

    Type

    No type

    Projects

    Status

    backlog

    Status

    triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions