@empiricalrun/reporter
Advanced tools
Comparing version 0.12.1 to 0.12.2
# @empiricalrun/reporter | ||
## 0.12.2 | ||
### Patch Changes | ||
- 7b00d84: feat: add pass/fail to google chat notification | ||
## 0.12.1 | ||
@@ -4,0 +10,0 @@ |
@@ -86,3 +86,4 @@ "use strict"; | ||
const results = this.reportSource.resultsSummary(); | ||
const title = "Tests completed"; | ||
const messageStatus = results.hasPassed ? "passed" : "failed"; | ||
const title = `Tests ${messageStatus}`; | ||
const header = { | ||
@@ -212,3 +213,3 @@ title, | ||
summaryString(results) { | ||
const { hasPassed, totalTests, failedTests } = results; | ||
const { hasPassed, failedTests } = results; | ||
const buildUrl = process.env.BUILD_URL | ||
@@ -222,3 +223,4 @@ ? this.sanitizeBuildUrl(process.env.BUILD_URL) | ||
else if (failedTests > 0) { | ||
return `${failedTests} failed out of ${totalTests} tests ${buildUrlSuffix}`; | ||
const tests = failedTests === 1 ? "test" : "tests"; | ||
return `${failedTests} ${tests} failed ${buildUrlSuffix}`; | ||
} | ||
@@ -225,0 +227,0 @@ } |
{ | ||
"name": "@empiricalrun/reporter", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "registry": "https://registry.npmjs.org/", |
Sorry, the diff of this file is not supported yet
67204
1482