Skip to content

Commit 733d47b

Browse files
authored
fix: use dashboard url markdown syntax (#125)
1 parent d137c17 commit 733d47b

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

cypress.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"supportFile": false,
33
"pluginsFile": false,
44
"fixturesFolder": false,
5-
"baseUrl": "http://localhost:5000"
5+
"baseUrl": "http://localhost:5000",
6+
"projectId": "ixroqc"
67
}

src/index.js

+16-12
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)