@@ -194,24 +194,28 @@ const processCypressResults = (results, errorCallback, summaryCallback) => {
194194 }
195195 } )
196196
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+
197206 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 }
202211 `
203212 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 } )`
205215 }
206216 summaryCallback ( {
207217 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 ( ' ' ) ,
215219 text,
216220 } )
217221
0 commit comments