mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 14:57:09 +01:00
better message
This commit is contained in:
parent
a065656aec
commit
f6fab9dc80
1 changed files with 4 additions and 1 deletions
|
|
@ -210,7 +210,10 @@ class TestReporter {
|
|||
|
||||
if (isFailed && this.slackWebhook) {
|
||||
const webhook = new IncomingWebhook(this.slackWebhook)
|
||||
await webhook.send('Test run failed: ' + resp.data.html_url)
|
||||
const passed = results.reduce((sum, tr) => sum + tr.passed, 0)
|
||||
const skipped = results.reduce((sum, tr) => sum + tr.skipped, 0)
|
||||
const failed = results.reduce((sum, tr) => sum + tr.failed, 0)
|
||||
await webhook.send(`Tests: ${passed} passed, ${failed} failed, ${skipped} skipped. ` + resp.data.html_url)
|
||||
}
|
||||
return results
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue