@@ -194,24 +194,28 @@ const processCypressResults = (results, errorCallback, summaryCallback) => {
194
194
}
195
195
} )
196
196
197
+ // Note: text looks nice with double space after the emoji
198
+ const summary = [
199
+ 'tests:' ,
200
+ `✅ ${ results . totalPassed } ` ,
201
+ `🔥 ${ results . totalFailed } ` ,
202
+ `⭕️ ${ results . totalPending } ` ,
203
+ `🚫 ${ results . totalSkipped } ` ,
204
+ ]
205
+
197
206
let text = stripIndent `
198
- ✅ Passed tests: ${ results . totalPassed }
199
- 🔥 Failed tests: ${ results . totalFailed }
200
- ⭕️ Pending tests: ${ results . totalPending }
201
- 🚫 Skipped tests: ${ results . totalSkipped }
207
+ ✅ Passed tests: ${ results . totalPassed }
208
+ 🔥 Failed tests: ${ results . totalFailed }
209
+ ⭕️ Pending tests: ${ results . totalPending }
210
+ 🚫 Skipped tests: ${ results . totalSkipped }
202
211
`
203
212
if ( results . runUrl ) {
204
- text += `\n🔗 Dashboard url: ${ results . runUrl } `
213
+ summary . push ( `🔗 [dashboard run](${ results . runUrl } )` )
214
+ text += `\n🔗 Cypress Dashboard url: [${ results . runUrl } ](${ results . runUrl } )`
205
215
}
206
216
summaryCallback ( {
207
217
title : PLUGIN_NAME ,
208
- summary : [
209
- 'tests:' ,
210
- `✅ ${ results . totalPassed } ` ,
211
- `🔥 ${ results . totalFailed } ` ,
212
- `⭕️ ${ results . totalPending } ` ,
213
- `🚫 ${ results . totalSkipped } ` ,
214
- ] . join ( ' ' ) ,
218
+ summary : summary . join ( ' ' ) ,
215
219
text,
216
220
} )
217
221
0 commit comments