Skip to content

Commit 06cbb86

Browse files
authored
Create cobra-report.hbs
1 parent 61f8f70 commit 06cbb86

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
| **Tests 📝** | **Passed ✅** | **Failed ❌** | **Skipped ⏭️** |
2+
| --- | --- | --- | --- |
3+
| {{ctrf.summary.tests}} | {{ctrf.summary.passed}} | {{ctrf.summary.failed}} | {{ctrf.summary.skipped}} |
4+
5+
{{#if (anyFailedTests ctrf.tests)}}
6+
<table>
7+
<thead>
8+
<tr>
9+
<th>Failed Tests {{getCtrfEmoji "failed"}}</th>
10+
<th>Fail Message</th>
11+
</tr>
12+
</thead>
13+
<tbody>
14+
{{#each ctrf.tests}}
15+
{{#if (eq status "failed")}}
16+
<tr>
17+
<td>{{getCtrfEmoji "failed"}} {{name}}</td>
18+
<td>
19+
{{#if message}}
20+
{{~{formatMessage message}}}
21+
{{else}}
22+
No failure message
23+
{{/if}}
24+
</td>
25+
</tr>
26+
{{/if}}
27+
{{/each}}
28+
</tbody>
29+
</table>
30+
{{else}}
31+
<p>No failed tests ✨</p>
32+
{{/if}}

0 commit comments

Comments
 (0)