diff --git a/cypress.json b/cypress.json index 29b72008..d101b4de 100644 --- a/cypress.json +++ b/cypress.json @@ -2,5 +2,6 @@ "supportFile": false, "pluginsFile": false, "fixturesFolder": false, - "baseUrl": "http://localhost:5000" + "baseUrl": "http://localhost:5000", + "projectId": "ixroqc" } diff --git a/src/index.js b/src/index.js index 23edbbbf..dfb5efdb 100644 --- a/src/index.js +++ b/src/index.js @@ -194,24 +194,28 @@ const processCypressResults = (results, errorCallback, summaryCallback) => { } }) + // Note: text looks nice with double space after the emoji + const summary = [ + 'tests:', + `āœ… ${results.totalPassed}`, + `šŸ”„ ${results.totalFailed}`, + `ā­•ļø ${results.totalPending}`, + `🚫 ${results.totalSkipped}`, + ] + let text = stripIndent` - āœ… Passed tests: ${results.totalPassed} - šŸ”„ Failed tests: ${results.totalFailed} - ā­•ļø Pending tests: ${results.totalPending} - 🚫 Skipped tests: ${results.totalSkipped} + āœ… Passed tests: ${results.totalPassed} + šŸ”„ Failed tests: ${results.totalFailed} + ā­•ļø Pending tests: ${results.totalPending} + 🚫 Skipped tests: ${results.totalSkipped} ` if (results.runUrl) { - text += `\nšŸ”— Dashboard url: ${results.runUrl}` + summary.push(`šŸ”— [dashboard run](${results.runUrl})`) + text += `\nšŸ”— Cypress Dashboard url: [${results.runUrl}](${results.runUrl})` } summaryCallback({ title: PLUGIN_NAME, - summary: [ - 'tests:', - `āœ… ${results.totalPassed}`, - `šŸ”„ ${results.totalFailed}`, - `ā­•ļø ${results.totalPending}`, - `🚫 ${results.totalSkipped}`, - ].join(' '), + summary: summary.join(' '), text, })