@allurereport/plugin-api
Advanced tools
+9
-0
@@ -0,1 +1,2 @@ | ||
| import type { Statistic, TestStatus } from "@allurereport/core-api"; | ||
| import type { AllureStore } from "./store.js"; | ||
@@ -22,2 +23,9 @@ export interface PluginDescriptor { | ||
| } | ||
| export interface PluginSummary { | ||
| href?: string; | ||
| name: string; | ||
| stats: Statistic; | ||
| status: TestStatus; | ||
| duration: number; | ||
| } | ||
| export interface BatchOptions { | ||
@@ -35,2 +43,3 @@ maxTimeout?: number; | ||
| done?(context: PluginContext, store: AllureStore): Promise<void>; | ||
| info?(context: PluginContext, store: AllureStore): Promise<PluginSummary>; | ||
| } |
+6
-2
@@ -1,7 +0,8 @@ | ||
| import type { AttachmentLink, HistoryDataPoint, HistoryTestResult, KnownTestFailure, Statistic, TestCase, TestFixtureResult, TestResult } from "@allurereport/core-api"; | ||
| import type { AttachmentLink, HistoryDataPoint, HistoryTestResult, KnownTestFailure, Statistic, TestCase, TestEnvGroup, TestFixtureResult, TestResult } from "@allurereport/core-api"; | ||
| import type { ResultFile } from "./resultFile.js"; | ||
| export type TestResultFilter = (testResult: TestResult) => boolean; | ||
| export interface AllureStore { | ||
| allTestCases: () => Promise<TestCase[]>; | ||
| allTestResults: (options?: { | ||
| includeHidden: boolean; | ||
| includeHidden?: boolean; | ||
| }) => Promise<TestResult[]>; | ||
@@ -32,2 +33,5 @@ allAttachments: () => Promise<AttachmentLink[]>; | ||
| testResultsByEnvironment: (env: string) => Promise<TestResult[]>; | ||
| allTestEnvGroups: () => Promise<TestEnvGroup[]>; | ||
| allVariables: () => Promise<Record<string, any>>; | ||
| envVariables: (env: string) => Promise<Record<string, any>>; | ||
| } |
+2
-2
| { | ||
| "name": "@allurereport/plugin-api", | ||
| "version": "3.0.0-beta.10", | ||
| "version": "3.0.0-beta.11", | ||
| "description": "Allure Plugin API", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@allurereport/core-api": "3.0.0-beta.10" | ||
| "@allurereport/core-api": "3.0.0-beta.11" | ||
| }, | ||
@@ -32,0 +32,0 @@ "devDependencies": { |
18224
3.07%381
3.53%+ Added
- Removed