Skip to content

Commit ed8bf7d

Browse files
committed
feat: enhance test results display with structured table format
1 parent 7318c70 commit ed8bf7d

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

src/reports/test-table.hbs

+21-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
<details open >
2-
| **Test Name** | **Status** | **Flaky** | **Duration** |
3-
| --- | --- | --- | --- |
4-
{{#slice ctrf.tests 0 8000}}
5-
| {{name}} | {{getCtrfEmoji status}} | {{#if flaky}}{{getCtrfEmoji "flaky"}}{{/if}} | {{formatDurationMs duration}} |
6-
{{/slice}}
2+
<summary>Test Results</summary>
3+
<table>
4+
<thead>
5+
<tr>
6+
<th><strong>Test Name</strong></th>
7+
<th><strong>Status</strong></th>
8+
<th><strong>Flaky</strong></th>
9+
<th><strong>Duration</strong></th>
10+
</tr>
11+
</thead>
12+
<tbody>
13+
{{#slice ctrf.tests 0 8000}}
14+
<tr>
15+
<td>{{name}}</td>
16+
<td>{{getCtrfEmoji status}}</td>
17+
<td>{{#if flaky}}{{getCtrfEmoji "flaky"}}{{/if}}</td>
18+
<td>{{formatDurationMs duration}}</td>
19+
</tr>
20+
{{/slice}}
21+
</tbody>
22+
</table>
723
</details>

0 commit comments

Comments
 (0)