qualyx 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +523 -0
- package/dist/cli/commands/init.d.ts +6 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +124 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/list.d.ts +3 -0
- package/dist/cli/commands/list.d.ts.map +1 -0
- package/dist/cli/commands/list.js +122 -0
- package/dist/cli/commands/list.js.map +1 -0
- package/dist/cli/commands/run.d.ts +12 -0
- package/dist/cli/commands/run.d.ts.map +1 -0
- package/dist/cli/commands/run.js +160 -0
- package/dist/cli/commands/run.js.map +1 -0
- package/dist/cli/commands/schedule.d.ts +19 -0
- package/dist/cli/commands/schedule.d.ts.map +1 -0
- package/dist/cli/commands/schedule.js +240 -0
- package/dist/cli/commands/schedule.js.map +1 -0
- package/dist/cli/commands/validate.d.ts +3 -0
- package/dist/cli/commands/validate.d.ts.map +1 -0
- package/dist/cli/commands/validate.js +47 -0
- package/dist/cli/commands/validate.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +194 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/core/claude-runner.d.ts +23 -0
- package/dist/core/claude-runner.d.ts.map +1 -0
- package/dist/core/claude-runner.js +196 -0
- package/dist/core/claude-runner.js.map +1 -0
- package/dist/core/config-loader.d.ts +137 -0
- package/dist/core/config-loader.d.ts.map +1 -0
- package/dist/core/config-loader.js +239 -0
- package/dist/core/config-loader.js.map +1 -0
- package/dist/core/executor.d.ts +75 -0
- package/dist/core/executor.d.ts.map +1 -0
- package/dist/core/executor.js +337 -0
- package/dist/core/executor.js.map +1 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +7 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/prompt-builder.d.ts +24 -0
- package/dist/core/prompt-builder.d.ts.map +1 -0
- package/dist/core/prompt-builder.js +145 -0
- package/dist/core/prompt-builder.js.map +1 -0
- package/dist/core/retry-handler.d.ts +42 -0
- package/dist/core/retry-handler.d.ts.map +1 -0
- package/dist/core/retry-handler.js +126 -0
- package/dist/core/retry-handler.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations/email.d.ts +38 -0
- package/dist/integrations/email.d.ts.map +1 -0
- package/dist/integrations/email.js +216 -0
- package/dist/integrations/email.js.map +1 -0
- package/dist/integrations/index.d.ts +5 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/index.js +5 -0
- package/dist/integrations/index.js.map +1 -0
- package/dist/integrations/jira.d.ts +68 -0
- package/dist/integrations/jira.d.ts.map +1 -0
- package/dist/integrations/jira.js +288 -0
- package/dist/integrations/jira.js.map +1 -0
- package/dist/integrations/slack.d.ts +66 -0
- package/dist/integrations/slack.d.ts.map +1 -0
- package/dist/integrations/slack.js +192 -0
- package/dist/integrations/slack.js.map +1 -0
- package/dist/integrations/teams.d.ts +72 -0
- package/dist/integrations/teams.d.ts.map +1 -0
- package/dist/integrations/teams.js +197 -0
- package/dist/integrations/teams.js.map +1 -0
- package/dist/reporters/console.d.ts +83 -0
- package/dist/reporters/console.d.ts.map +1 -0
- package/dist/reporters/console.js +299 -0
- package/dist/reporters/console.js.map +1 -0
- package/dist/reporters/html.d.ts +29 -0
- package/dist/reporters/html.d.ts.map +1 -0
- package/dist/reporters/html.js +105 -0
- package/dist/reporters/html.js.map +1 -0
- package/dist/storage/results.d.ts +61 -0
- package/dist/storage/results.d.ts.map +1 -0
- package/dist/storage/results.js +111 -0
- package/dist/storage/results.js.map +1 -0
- package/dist/storage/sqlite.d.ts +70 -0
- package/dist/storage/sqlite.d.ts.map +1 -0
- package/dist/storage/sqlite.js +240 -0
- package/dist/storage/sqlite.js.map +1 -0
- package/dist/types/index.d.ts +1239 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +105 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +75 -0
- package/templates/crontab.hbs +24 -0
- package/templates/github-schedule.yml.hbs +153 -0
- package/templates/prompt.md.hbs +147 -0
- package/templates/report.html.hbs +423 -0
- package/templates/slack-message.json.hbs +93 -0
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Qualyx Test Report - {{formatDate run.startedAt}}</title>
|
|
7
|
+
<style>
|
|
8
|
+
:root {
|
|
9
|
+
--color-pass: #22c55e;
|
|
10
|
+
--color-fail: #ef4444;
|
|
11
|
+
--color-skip: #f59e0b;
|
|
12
|
+
--color-pending: #6b7280;
|
|
13
|
+
--color-bg: #f8fafc;
|
|
14
|
+
--color-card: #ffffff;
|
|
15
|
+
--color-border: #e2e8f0;
|
|
16
|
+
--color-text: #1e293b;
|
|
17
|
+
--color-text-muted: #64748b;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
* {
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding: 0;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
body {
|
|
27
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
28
|
+
background: var(--color-bg);
|
|
29
|
+
color: var(--color-text);
|
|
30
|
+
line-height: 1.6;
|
|
31
|
+
padding: 2rem;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.container {
|
|
35
|
+
max-width: 1200px;
|
|
36
|
+
margin: 0 auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
header {
|
|
40
|
+
background: var(--color-card);
|
|
41
|
+
border-radius: 12px;
|
|
42
|
+
padding: 2rem;
|
|
43
|
+
margin-bottom: 2rem;
|
|
44
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
h1 {
|
|
48
|
+
font-size: 1.75rem;
|
|
49
|
+
margin-bottom: 0.5rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.subtitle {
|
|
53
|
+
color: var(--color-text-muted);
|
|
54
|
+
font-size: 0.9rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.summary-grid {
|
|
58
|
+
display: grid;
|
|
59
|
+
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
60
|
+
gap: 1rem;
|
|
61
|
+
margin-top: 1.5rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.summary-card {
|
|
65
|
+
background: var(--color-bg);
|
|
66
|
+
padding: 1rem;
|
|
67
|
+
border-radius: 8px;
|
|
68
|
+
text-align: center;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.summary-card .value {
|
|
72
|
+
font-size: 2rem;
|
|
73
|
+
font-weight: 700;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.summary-card .label {
|
|
77
|
+
font-size: 0.85rem;
|
|
78
|
+
color: var(--color-text-muted);
|
|
79
|
+
text-transform: uppercase;
|
|
80
|
+
letter-spacing: 0.05em;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.summary-card.passed .value { color: var(--color-pass); }
|
|
84
|
+
.summary-card.failed .value { color: var(--color-fail); }
|
|
85
|
+
.summary-card.skipped .value { color: var(--color-skip); }
|
|
86
|
+
|
|
87
|
+
.progress-bar {
|
|
88
|
+
height: 8px;
|
|
89
|
+
background: var(--color-border);
|
|
90
|
+
border-radius: 4px;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
margin-top: 1.5rem;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.progress-bar-inner {
|
|
96
|
+
height: 100%;
|
|
97
|
+
display: flex;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.progress-pass { background: var(--color-pass); }
|
|
101
|
+
.progress-fail { background: var(--color-fail); }
|
|
102
|
+
.progress-skip { background: var(--color-skip); }
|
|
103
|
+
|
|
104
|
+
.results-section {
|
|
105
|
+
margin-top: 2rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.results-section h2 {
|
|
109
|
+
font-size: 1.25rem;
|
|
110
|
+
margin-bottom: 1rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.test-card {
|
|
114
|
+
background: var(--color-card);
|
|
115
|
+
border-radius: 12px;
|
|
116
|
+
padding: 1.5rem;
|
|
117
|
+
margin-bottom: 1rem;
|
|
118
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
119
|
+
border-left: 4px solid var(--color-border);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.test-card.passed { border-left-color: var(--color-pass); }
|
|
123
|
+
.test-card.failed { border-left-color: var(--color-fail); }
|
|
124
|
+
.test-card.skipped { border-left-color: var(--color-skip); }
|
|
125
|
+
|
|
126
|
+
.test-header {
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: space-between;
|
|
129
|
+
align-items: flex-start;
|
|
130
|
+
margin-bottom: 1rem;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.test-title {
|
|
134
|
+
font-weight: 600;
|
|
135
|
+
font-size: 1.1rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.test-meta {
|
|
139
|
+
font-size: 0.85rem;
|
|
140
|
+
color: var(--color-text-muted);
|
|
141
|
+
margin-top: 0.25rem;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.badge {
|
|
145
|
+
display: inline-block;
|
|
146
|
+
padding: 0.25rem 0.75rem;
|
|
147
|
+
border-radius: 9999px;
|
|
148
|
+
font-size: 0.75rem;
|
|
149
|
+
font-weight: 600;
|
|
150
|
+
text-transform: uppercase;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.badge.passed { background: #dcfce7; color: #166534; }
|
|
154
|
+
.badge.failed { background: #fee2e2; color: #991b1b; }
|
|
155
|
+
.badge.skipped { background: #fef3c7; color: #92400e; }
|
|
156
|
+
|
|
157
|
+
.badge.critical { background: #fee2e2; color: #991b1b; }
|
|
158
|
+
.badge.high { background: #ffedd5; color: #9a3412; }
|
|
159
|
+
.badge.medium { background: #fef3c7; color: #92400e; }
|
|
160
|
+
.badge.low { background: #e0e7ff; color: #3730a3; }
|
|
161
|
+
|
|
162
|
+
.steps-list {
|
|
163
|
+
margin-top: 1rem;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.step-item {
|
|
167
|
+
display: flex;
|
|
168
|
+
align-items: flex-start;
|
|
169
|
+
padding: 0.75rem;
|
|
170
|
+
background: var(--color-bg);
|
|
171
|
+
border-radius: 6px;
|
|
172
|
+
margin-bottom: 0.5rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.step-status {
|
|
176
|
+
width: 20px;
|
|
177
|
+
height: 20px;
|
|
178
|
+
border-radius: 50%;
|
|
179
|
+
margin-right: 0.75rem;
|
|
180
|
+
flex-shrink: 0;
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
justify-content: center;
|
|
184
|
+
font-size: 0.7rem;
|
|
185
|
+
color: white;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.step-status.passed { background: var(--color-pass); }
|
|
189
|
+
.step-status.failed { background: var(--color-fail); }
|
|
190
|
+
|
|
191
|
+
.step-content {
|
|
192
|
+
flex: 1;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.step-description {
|
|
196
|
+
font-size: 0.9rem;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.step-error {
|
|
200
|
+
font-size: 0.8rem;
|
|
201
|
+
color: var(--color-fail);
|
|
202
|
+
margin-top: 0.25rem;
|
|
203
|
+
font-family: monospace;
|
|
204
|
+
background: #fee2e2;
|
|
205
|
+
padding: 0.5rem;
|
|
206
|
+
border-radius: 4px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.step-duration {
|
|
210
|
+
font-size: 0.75rem;
|
|
211
|
+
color: var(--color-text-muted);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.validations-list {
|
|
215
|
+
margin-top: 1rem;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.validation-item {
|
|
219
|
+
display: flex;
|
|
220
|
+
align-items: center;
|
|
221
|
+
padding: 0.5rem 0;
|
|
222
|
+
border-bottom: 1px solid var(--color-border);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.validation-item:last-child {
|
|
226
|
+
border-bottom: none;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.validation-icon {
|
|
230
|
+
margin-right: 0.5rem;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.validation-icon.passed { color: var(--color-pass); }
|
|
234
|
+
.validation-icon.failed { color: var(--color-fail); }
|
|
235
|
+
|
|
236
|
+
.error-box {
|
|
237
|
+
background: #fee2e2;
|
|
238
|
+
border: 1px solid #fecaca;
|
|
239
|
+
border-radius: 8px;
|
|
240
|
+
padding: 1rem;
|
|
241
|
+
margin-top: 1rem;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.error-box h4 {
|
|
245
|
+
color: #991b1b;
|
|
246
|
+
font-size: 0.9rem;
|
|
247
|
+
margin-bottom: 0.5rem;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.error-box pre {
|
|
251
|
+
font-size: 0.85rem;
|
|
252
|
+
white-space: pre-wrap;
|
|
253
|
+
word-break: break-word;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.screenshot {
|
|
257
|
+
margin-top: 1rem;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.screenshot img {
|
|
261
|
+
max-width: 100%;
|
|
262
|
+
border-radius: 8px;
|
|
263
|
+
border: 1px solid var(--color-border);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.toggle-details {
|
|
267
|
+
background: none;
|
|
268
|
+
border: none;
|
|
269
|
+
color: var(--color-text-muted);
|
|
270
|
+
cursor: pointer;
|
|
271
|
+
font-size: 0.85rem;
|
|
272
|
+
padding: 0.5rem 0;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.toggle-details:hover {
|
|
276
|
+
color: var(--color-text);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.details {
|
|
280
|
+
display: none;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.details.show {
|
|
284
|
+
display: block;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
footer {
|
|
288
|
+
text-align: center;
|
|
289
|
+
margin-top: 3rem;
|
|
290
|
+
padding: 2rem;
|
|
291
|
+
color: var(--color-text-muted);
|
|
292
|
+
font-size: 0.85rem;
|
|
293
|
+
}
|
|
294
|
+
</style>
|
|
295
|
+
</head>
|
|
296
|
+
<body>
|
|
297
|
+
<div class="container">
|
|
298
|
+
<header>
|
|
299
|
+
<h1>Qualyx Test Report</h1>
|
|
300
|
+
<p class="subtitle">
|
|
301
|
+
{{organization}} • {{formatDate run.startedAt}} • Duration: {{formatDuration run.duration}}
|
|
302
|
+
</p>
|
|
303
|
+
|
|
304
|
+
<div class="summary-grid">
|
|
305
|
+
<div class="summary-card">
|
|
306
|
+
<div class="value">{{run.totalTests}}</div>
|
|
307
|
+
<div class="label">Total Tests</div>
|
|
308
|
+
</div>
|
|
309
|
+
<div class="summary-card passed">
|
|
310
|
+
<div class="value">{{run.passed}}</div>
|
|
311
|
+
<div class="label">Passed</div>
|
|
312
|
+
</div>
|
|
313
|
+
<div class="summary-card failed">
|
|
314
|
+
<div class="value">{{run.failed}}</div>
|
|
315
|
+
<div class="label">Failed</div>
|
|
316
|
+
</div>
|
|
317
|
+
<div class="summary-card skipped">
|
|
318
|
+
<div class="value">{{run.skipped}}</div>
|
|
319
|
+
<div class="label">Skipped</div>
|
|
320
|
+
</div>
|
|
321
|
+
</div>
|
|
322
|
+
|
|
323
|
+
<div class="progress-bar">
|
|
324
|
+
<div class="progress-bar-inner">
|
|
325
|
+
<div class="progress-pass" style="width: {{passedPercent}}%"></div>
|
|
326
|
+
<div class="progress-fail" style="width: {{failedPercent}}%"></div>
|
|
327
|
+
<div class="progress-skip" style="width: {{skippedPercent}}%"></div>
|
|
328
|
+
</div>
|
|
329
|
+
</div>
|
|
330
|
+
</header>
|
|
331
|
+
|
|
332
|
+
<section class="results-section">
|
|
333
|
+
<h2>Test Results</h2>
|
|
334
|
+
|
|
335
|
+
{{#each run.results}}
|
|
336
|
+
<div class="test-card {{status}}">
|
|
337
|
+
<div class="test-header">
|
|
338
|
+
<div>
|
|
339
|
+
<div class="test-title">{{ruleName}}</div>
|
|
340
|
+
<div class="test-meta">
|
|
341
|
+
{{appName}} • {{ruleId}} • {{formatDuration duration}}
|
|
342
|
+
{{#if retryCount}}• Retried {{retryCount}} time(s){{/if}}
|
|
343
|
+
</div>
|
|
344
|
+
</div>
|
|
345
|
+
<div>
|
|
346
|
+
<span class="badge {{severity}}">{{severity}}</span>
|
|
347
|
+
<span class="badge {{status}}">{{status}}</span>
|
|
348
|
+
</div>
|
|
349
|
+
</div>
|
|
350
|
+
|
|
351
|
+
<button class="toggle-details" onclick="toggleDetails('{{ruleId}}')">
|
|
352
|
+
Show Details ▼
|
|
353
|
+
</button>
|
|
354
|
+
|
|
355
|
+
<div id="details-{{ruleId}}" class="details">
|
|
356
|
+
{{#if steps.length}}
|
|
357
|
+
<div class="steps-list">
|
|
358
|
+
<h4>Steps</h4>
|
|
359
|
+
{{#each steps}}
|
|
360
|
+
<div class="step-item">
|
|
361
|
+
<div class="step-status {{status}}">
|
|
362
|
+
{{#if (eq status "passed")}}✓{{else}}✗{{/if}}
|
|
363
|
+
</div>
|
|
364
|
+
<div class="step-content">
|
|
365
|
+
<div class="step-description">{{step}}</div>
|
|
366
|
+
{{#if error}}
|
|
367
|
+
<div class="step-error">{{error}}</div>
|
|
368
|
+
{{/if}}
|
|
369
|
+
</div>
|
|
370
|
+
<div class="step-duration">{{formatDuration duration}}</div>
|
|
371
|
+
</div>
|
|
372
|
+
{{/each}}
|
|
373
|
+
</div>
|
|
374
|
+
{{/if}}
|
|
375
|
+
|
|
376
|
+
{{#if validations.length}}
|
|
377
|
+
<div class="validations-list">
|
|
378
|
+
<h4>Validations</h4>
|
|
379
|
+
{{#each validations}}
|
|
380
|
+
<div class="validation-item">
|
|
381
|
+
<span class="validation-icon {{#if passed}}passed{{else}}failed{{/if}}">
|
|
382
|
+
{{#if passed}}✓{{else}}✗{{/if}}
|
|
383
|
+
</span>
|
|
384
|
+
<span>{{validation}}</span>
|
|
385
|
+
{{#if details}}<span class="test-meta"> - {{details}}</span>{{/if}}
|
|
386
|
+
</div>
|
|
387
|
+
{{/each}}
|
|
388
|
+
</div>
|
|
389
|
+
{{/if}}
|
|
390
|
+
|
|
391
|
+
{{#if error}}
|
|
392
|
+
<div class="error-box">
|
|
393
|
+
<h4>Error</h4>
|
|
394
|
+
<pre>{{error}}</pre>
|
|
395
|
+
</div>
|
|
396
|
+
{{/if}}
|
|
397
|
+
|
|
398
|
+
{{#if screenshot}}
|
|
399
|
+
<div class="screenshot">
|
|
400
|
+
<h4>Screenshot</h4>
|
|
401
|
+
<img src="data:image/png;base64,{{screenshot}}" alt="Failure screenshot">
|
|
402
|
+
</div>
|
|
403
|
+
{{/if}}
|
|
404
|
+
</div>
|
|
405
|
+
</div>
|
|
406
|
+
{{/each}}
|
|
407
|
+
</section>
|
|
408
|
+
|
|
409
|
+
<footer>
|
|
410
|
+
Generated by Qualyx v{{version}} • {{formatDate run.completedAt}}
|
|
411
|
+
</footer>
|
|
412
|
+
</div>
|
|
413
|
+
|
|
414
|
+
<script>
|
|
415
|
+
function toggleDetails(ruleId) {
|
|
416
|
+
const details = document.getElementById('details-' + ruleId);
|
|
417
|
+
details.classList.toggle('show');
|
|
418
|
+
const button = details.previousElementSibling;
|
|
419
|
+
button.textContent = details.classList.contains('show') ? 'Hide Details ▲' : 'Show Details ▼';
|
|
420
|
+
}
|
|
421
|
+
</script>
|
|
422
|
+
</body>
|
|
423
|
+
</html>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"text": "{{#if hasFailed}}:x:{{else}}:white_check_mark:{{/if}} Qualyx Test Run {{status}}: {{passed}}/{{totalTests}} passed",
|
|
3
|
+
"blocks": [
|
|
4
|
+
{
|
|
5
|
+
"type": "header",
|
|
6
|
+
"text": {
|
|
7
|
+
"type": "plain_text",
|
|
8
|
+
"text": "{{#if hasFailed}}:x:{{else}}:white_check_mark:{{/if}} Qualyx Test Run {{status}}",
|
|
9
|
+
"emoji": true
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "section",
|
|
14
|
+
"fields": [
|
|
15
|
+
{
|
|
16
|
+
"type": "mrkdwn",
|
|
17
|
+
"text": "*Organization:*\n{{organizationName}}"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "mrkdwn",
|
|
21
|
+
"text": "*Environment:*\n{{environment}}"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "mrkdwn",
|
|
25
|
+
"text": "*Total Tests:*\n{{totalTests}}"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "mrkdwn",
|
|
29
|
+
"text": "*Pass Rate:*\n{{passRate}}%"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "section",
|
|
35
|
+
"fields": [
|
|
36
|
+
{
|
|
37
|
+
"type": "mrkdwn",
|
|
38
|
+
"text": ":white_check_mark: *Passed:* {{passed}}"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"type": "mrkdwn",
|
|
42
|
+
"text": ":x: *Failed:* {{failed}}"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "mrkdwn",
|
|
46
|
+
"text": ":arrow_right: *Skipped:* {{skipped}}"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "mrkdwn",
|
|
50
|
+
"text": ":clock1: *Duration:* {{duration}}"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}{{#if hasFailed}},
|
|
54
|
+
{
|
|
55
|
+
"type": "section",
|
|
56
|
+
"text": {
|
|
57
|
+
"type": "mrkdwn",
|
|
58
|
+
"text": "*Failed Tests:*\n{{#each failedTests}}• *{{ruleName}}* ({{appName}}): {{error}}\n{{/each}}"
|
|
59
|
+
}
|
|
60
|
+
}{{/if}}{{#if reportUrl}},
|
|
61
|
+
{
|
|
62
|
+
"type": "section",
|
|
63
|
+
"text": {
|
|
64
|
+
"type": "mrkdwn",
|
|
65
|
+
"text": ":page_facing_up: *View Full Report:*"
|
|
66
|
+
},
|
|
67
|
+
"accessory": {
|
|
68
|
+
"type": "button",
|
|
69
|
+
"text": {
|
|
70
|
+
"type": "plain_text",
|
|
71
|
+
"text": "Open Report",
|
|
72
|
+
"emoji": true
|
|
73
|
+
},
|
|
74
|
+
"url": "{{reportUrl}}"
|
|
75
|
+
}
|
|
76
|
+
}{{/if}},
|
|
77
|
+
{
|
|
78
|
+
"type": "context",
|
|
79
|
+
"elements": [
|
|
80
|
+
{
|
|
81
|
+
"type": "mrkdwn",
|
|
82
|
+
"text": "Run ID: {{runId}} | {{timestamp}}"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"attachments": [
|
|
88
|
+
{
|
|
89
|
+
"color": "{{#if hasFailed}}#e74c3c{{else}}#2ecc71{{/if}}",
|
|
90
|
+
"fallback": "Test run {{status}}: {{passed}}/{{totalTests}} passed"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|