@allurereport/reader-api
Advanced tools
+11
-5
@@ -5,2 +5,8 @@ export type RawTestStatus = "failed" | "broken" | "passed" | "skipped" | "unknown"; | ||
| }; | ||
| export type RawError = { | ||
| message?: string; | ||
| trace?: string; | ||
| expected?: string; | ||
| actual?: string; | ||
| }; | ||
| export interface RawFixtureResult { | ||
@@ -22,3 +28,3 @@ uuid?: string; | ||
| } | ||
| export interface RawTestResult { | ||
| export interface RawTestResult extends RawError { | ||
| uuid?: string; | ||
@@ -40,6 +46,2 @@ name?: string; | ||
| duration?: number; | ||
| message?: string; | ||
| trace?: string; | ||
| expected?: string; | ||
| actual?: string; | ||
| flaky?: boolean; | ||
@@ -98,1 +100,5 @@ muted?: boolean; | ||
| } | ||
| export interface RawGlobals { | ||
| attachments: RawTestAttachment[]; | ||
| errors: RawError[]; | ||
| } |
+2
-1
| import type { ResultFile } from "@allurereport/plugin-api"; | ||
| import type { RawFixtureResult, RawMetadata, RawTestResult } from "./model.js"; | ||
| import type { RawFixtureResult, RawGlobals, RawMetadata, RawTestResult } from "./model.js"; | ||
| export interface ReaderContext { | ||
@@ -12,2 +12,3 @@ readerId: string; | ||
| visitMetadata(metadata: RawMetadata, context: ReaderContext): Promise<void>; | ||
| visitGlobals(globals: RawGlobals, context: ReaderContext): Promise<void>; | ||
| } | ||
@@ -14,0 +15,0 @@ export interface ResultsReader { |
+3
-3
| { | ||
| "name": "@allurereport/reader-api", | ||
| "version": "3.1.0", | ||
| "version": "3.2.0", | ||
| "description": "Allure Reader API", | ||
@@ -30,4 +30,4 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@allurereport/core-api": "3.1.0", | ||
| "@allurereport/plugin-api": "3.1.0", | ||
| "@allurereport/core-api": "3.2.0", | ||
| "@allurereport/plugin-api": "3.2.0", | ||
| "mime-types": "^2.1.35" | ||
@@ -34,0 +34,0 @@ }, |
41295
0.56%1148
0.61%+ Added
+ Added
- Removed
- Removed
Updated