@empiricalrun/reporter
Advanced tools
Comparing version 0.8.1 to 0.8.2
# @empiricalrun/reporter | ||
## 0.8.2 | ||
### Patch Changes | ||
- 5c18b17: fix(reporter): use allure xml files as source to be consistent with web report | ||
## 0.8.1 | ||
@@ -4,0 +10,0 @@ |
@@ -23,3 +23,3 @@ export type Results = { | ||
platform(): Platform; | ||
reportExists(): boolean; | ||
reportExists(): Promise<boolean>; | ||
resultsSummary(): Results; | ||
@@ -26,0 +26,0 @@ failedTests(): FailedTestWithLink[]; |
@@ -14,3 +14,3 @@ import { BaseReportSource, FailedTestWithLink, Platform } from "./base"; | ||
getSummaryReportUrl(): string; | ||
reportExists(): boolean; | ||
reportExists(): Promise<boolean>; | ||
resultsSummary(): { | ||
@@ -17,0 +17,0 @@ hasPassed: boolean; |
@@ -25,3 +25,3 @@ "use strict"; | ||
} | ||
reportExists() { | ||
async reportExists() { | ||
return fs_1.default.existsSync(this.srcFile); | ||
@@ -28,0 +28,0 @@ } |
@@ -74,3 +74,3 @@ "use strict"; | ||
else if (messageType === types_1.MESSAGE_TYPE.END) { | ||
if (!reportSource.reportExists()) { | ||
if (!(await reportSource.reportExists())) { | ||
await Promise.all(sinks.map((s) => s.sendMessageForError())); | ||
@@ -77,0 +77,0 @@ } |
{ | ||
"name": "@empiricalrun/reporter", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"publishConfig": { | ||
@@ -22,3 +22,4 @@ "registry": "https://registry.npmjs.org/", | ||
"dependencies": { | ||
"@slack/webhook": "^7.0.2" | ||
"@slack/webhook": "^7.0.2", | ||
"fast-xml-parser": "^4.4.0" | ||
}, | ||
@@ -25,0 +26,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
53161
45
1206
2
+ Addedfast-xml-parser@^4.4.0
+ Added@types/node@22.13.0(transitive)
+ Addedfast-xml-parser@4.5.1(transitive)
+ Addedstrnum@1.0.5(transitive)
- Removed@types/node@22.13.1(transitive)