-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathgithub.hbs
More file actions
135 lines (123 loc) · 6.47 KB
/
github.hbs
File metadata and controls
135 lines (123 loc) · 6.47 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{{#if ctrf.summary.failed}}
 **{{ctrf.summary.failed}} failed**{{#if report.insights.extra.summary.failed.change}} *{{#if (gt report.insights.extra.summary.failed.change 0)}}↑{{report.insights.extra.summary.failed.change}}{{else}}↓{{abs report.insights.extra.summary.failed.change}}{{/if}}*{{/if}}
{{/if}}
 **{{ctrf.summary.passed}} passed**{{#if report.insights.extra.summary.passed.change}} *{{#if (gt report.insights.extra.summary.passed.change 0)}}↑{{report.insights.extra.summary.passed.change}}{{else}}↓{{abs report.insights.extra.summary.passed.change}}{{/if}}*{{/if}}
{{#if ctrf.summary.skipped}}
 **{{ctrf.summary.skipped}} skipped**{{#if report.insights.extra.summary.skipped.change}} *{{#if (gt report.insights.extra.summary.skipped.change 0)}}↑{{report.insights.extra.summary.skipped.change}}{{else}}↓{{abs report.insights.extra.summary.skipped.change}}{{/if}}*{{/if}}
{{/if}}
{{#if ctrf.summary.pending}}
 **{{ctrf.summary.pending}} pending**{{#if report.insights.extra.summary.pending.change}} *{{#if (gt report.insights.extra.summary.pending.change 0)}}↑{{report.insights.extra.summary.pending.change}}{{else}}↓{{abs report.insights.extra.summary.pending.change}}{{/if}}*{{/if}}
{{/if}}
{{#if ctrf.summary.other}}
 **{{ctrf.summary.other}} other**{{#if report.insights.extra.summary.other.change}} *{{#if (gt report.insights.extra.summary.other.change 0)}}↑{{report.insights.extra.summary.other.change}}{{else}}↓{{abs report.insights.extra.summary.other.change}}{{/if}}*{{/if}}
{{/if}}
{{#if (countFlakyTests ctrf.tests)}}
 **{{countFlakyTests ctrf.tests}} flaky**{{#if report.insights.extra.summary.flaky.change}} *{{#if (gt report.insights.extra.summary.flaky.change 0)}}↑{{report.insights.extra.summary.flaky.change}}{{else}}↓{{abs report.insights.extra.summary.flaky.change}}{{/if}}*{{/if}}
{{/if}}
#### Details
 {{ctrf.summary.tests}} tests{{#if ctrf.summary.suites}} in {{ctrf.summary.suites}} suites{{/if}}{{#if report.insights.extra.summary.tests.change}} *{{#if (gt report.insights.extra.summary.tests.change 0)}}↑{{report.insights.extra.summary.tests.change}}{{else}}↓{{abs report.insights.extra.summary.tests.change}}{{/if}}*{{/if}}
 {{formatDurationFromTimes ctrf.summary.start ctrf.summary.stop}}{{#if report.insights.extra.summary.duration.change}} *{{#if (gt report.insights.extra.summary.duration.change 0)}}↑{{formatDuration report.insights.extra.summary.duration.change}}{{else}}↓{{formatDuration (abs report.insights.extra.summary.duration.change)}}{{/if}}*{{/if}}
{{#if ctrf.tool.name}}
 {{ctrf.tool.name}}
{{/if}}
{{#if ctrf.environment.appName}}
{{#if ctrf.environment.appVersion}}
 {{ctrf.environment.appName}} v{{ctrf.environment.appVersion}}
{{else}}
 {{ctrf.environment.appName}}
{{/if}}
{{/if}}
{{#if ctrf.environment.buildName}}
{{#if ctrf.environment.buildNumber}}
{{#if ctrf.environment.buildUrl}}
 {{github.workflow}}  {{ctrf.environment.buildName}}  [#{{ctrf.environment.buildNumber}}]({{ctrf.environment.buildUrl}})
{{/if}}
{{/if}}
{{/if}}
{{#if github.pullRequestNumber}}
{{#if github.pullRequest.title}}
 {{github.pullRequest.title}}  [#{{github.pullRequestNumber}}]({{github.pullRequest.htmlUrl}})
{{else}}
 #{{github.pullRequestNumber}}
{{/if}}
{{else}}
{{#if github.context.commits}}  {{#with (splitLines github.context.commits.[0].message)}}{{#each this}}{{#if @first}}{{this}}{{/if}}{{/each}}{{/with}}{{#if github.context.commits.[0].id}}  [{{sliceString github.context.commits.[0].id 0 7}}]({{github.context.commits.[0].url}}){{/if}}{{else}}{{#with (splitLines github.commit.message)}}{{#each this}}{{#if @first}}{{this}}{{/if}}{{/each}}{{/with}}{{#if github.commit.hash}}  [{{github.commit.hash.substring 0 7}}]({{#if github.repository.htmlUrl}}{{github.repository.htmlUrl}}/commit/{{github.commit.hash}}{{else}}#{{/if}}){{/if}}{{/if}}
{{/if}}
{{#unless github.pullRequestNumber}}
{{#if ctrf.environment.branchName}}
 {{ctrf.environment.branchName}}{{#if github.repository.htmlUrl}}  [view]({{github.repository.htmlUrl}}/tree/{{ctrf.environment.branchName}}){{/if}}
{{/if}}
{{/unless}}
{{#if ctrf.environment.testEnvironment}}
 {{ctrf.environment.testEnvironment}}
{{/if}}
{{#if ctrf.summary.failed}}
<details><summary><strong> Failed Tests
</strong></summary>
{{#each ctrf.tests}}
{{#if (eq status "failed")}}
{{#if suite}}
{{formatTestPath suite name}}
{{else}}
{{name}}
{{/if}}
{{/if}}
{{/each}}
</details>
{{/if}}
{{#if (countFlakyTests ctrf.tests)}}
<details><summary><strong> Flaky Tests
</strong></summary>
{{#each ctrf.tests}}
{{#if (eq flaky true)}}
{{#if suite}}
{{formatTestPath suite name}}
{{else}}
{{name}}
{{/if}}
{{/if}}
{{/each}}
</details>
{{/if}}
{{#if ctrf.summary.skipped}}
<details><summary><strong> Skipped Tests
</strong></summary>
{{#each ctrf.tests}}
{{#if (eq status "skipped")}}
{{#if suite}}
{{formatTestPath suite name}}
{{else}}
{{name}}
{{/if}}
{{/if}}
{{/each}}
</details>
{{/if}}
{{#if ctrf.summary.pending}}
<details><summary><strong> Pending Tests
</strong></summary>
{{#each ctrf.tests}}
{{#if (eq status "pending")}}
{{#if suite}}
{{formatTestPath suite name}}
{{else}}
{{name}}
{{/if}}
{{/if}}
{{/each}}
</details>
{{/if}}
{{#if ctrf.summary.other}}
<details><summary><strong> Other Tests
</strong></summary>
{{#each ctrf.tests}}
{{#if (eq status "other")}}
{{#if suite}}
{{formatTestPath suite name}}
{{else}}
{{name}}
{{/if}}
{{/if}}
{{/each}}
</details>
{{/if}}