-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathpull-request.hbs
More file actions
29 lines (26 loc) · 1.29 KB
/
pull-request.hbs
File metadata and controls
29 lines (26 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
### {{github.job}}: [Run #{{github.runNumber}}]({{github.buildUrl}})
| **Tests {{getCtrfEmoji "tests"}}** | **Passed {{getCtrfEmoji "passed"}}** | **Failed {{getCtrfEmoji "failed"}}** | **Skipped {{getCtrfEmoji "skipped"}}** | **Pending {{getCtrfEmoji "pending"}}** | **Other {{getCtrfEmoji "other"}}** | **Flaky {{getCtrfEmoji "flaky"}}** | **Duration {{getCtrfEmoji "duration"}}** |
| --- | --- | --- | --- | --- | --- | --- | --- |
| {{ctrf.summary.tests}} | {{ctrf.summary.passed}} | {{ctrf.summary.failed}} | {{ctrf.summary.skipped}} | {{ctrf.summary.pending}} | {{ctrf.summary.other}} | {{countFlakyTests ctrf.tests}} | {{formatDurationFromTimes ctrf.summary.start ctrf.summary.stop}} |
### {{#if ctrf.summary.failed}}{{getCtrfEmoji "failed"}} **Some tests failed!**{{else}}🎉 **All tests passed!**{{/if}}
{{#if ctrf.summary.failed}}
<table>
<thead>
<tr>
<th>Name</th>
<th>Failure Message</th>
</tr>
</thead>
<tbody>
{{#each (limitFailedTests ctrf.tests 5)}}
<tr>
<td>{{getCtrfEmoji "failed"}} {{name}}</td>
<td>{{#if message}}{{stripAnsi message}}{{else}}No failure message{{/if}}</td>
</tr>
{{/each}}
</tbody>
</table>
{{#if (gt ctrf.summary.failed 5)}}
<p><a href="{{github.buildUrl}}">See all failed tests here</a></p>
{{/if}}
{{/if}}