🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@allurereport/plugin-api

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@allurereport/plugin-api - npm Package Compare versions

Comparing version
3.3.1
to
3.4.0
+1
-0
dist/config.d.ts

@@ -9,2 +9,3 @@ import type { CategoriesConfig, DefaultLabelsConfig, EnvironmentsConfig, ReportVariables } from "@allurereport/core-api";

port?: string;
hideLabels?: (string | RegExp)[];
historyPath?: string;

@@ -11,0 +12,0 @@ historyLimit?: number;

@@ -25,2 +25,3 @@ import type { AllureHistory, AttachmentLink, CategoryDefinition, CiDescriptor, Statistic, TestError, TestResult, TestStatus } from "@allurereport/core-api";

reportName: string;
hideLabels?: (string | RegExp)[];
reportFiles: ReportFiles;

@@ -27,0 +28,0 @@ reportUrl?: string;

+14
-4

@@ -1,2 +0,2 @@

import type { AttachmentLink, HistoryDataPoint, HistoryTestResult, KnownTestFailure, ReportVariables, Statistic, TestCase, TestEnvGroup, TestError, TestFixtureResult, TestResult } from "@allurereport/core-api";
import type { AttachmentLink, EnvironmentIdentity, HistoryDataPoint, HistoryTestResult, KnownTestFailure, ReportVariables, Statistic, TestCase, TestEnvGroup, TestError, TestFixtureResult, TestResult } from "@allurereport/core-api";
import type { ExitCode } from "./plugin.js";

@@ -17,2 +17,3 @@ import type { QualityGateValidationResult } from "./qualityGate.js";

allHistoryDataPointsByEnvironment: (environment: string) => Promise<HistoryDataPoint[]>;
allHistoryDataPointsByEnvironmentId: (environmentId: string) => Promise<HistoryDataPoint[]>;
allKnownIssues: () => Promise<KnownTestFailure[]>;

@@ -22,2 +23,3 @@ allNewTestResults: (filter?: TestResultFilter, history?: HistoryDataPoint[]) => Promise<TestResult[]>;

qualityGateResultsByEnv: () => Promise<Record<string, QualityGateValidationResult[]>>;
qualityGateResultsByEnvironmentId: () => Promise<Record<string, QualityGateValidationResult[]>>;
globalExitCode: () => Promise<ExitCode | undefined>;

@@ -32,2 +34,3 @@ allGlobalErrors: () => Promise<TestError[]>;

testResultsByTcId: (tcId: string) => Promise<TestResult[]>;
environmentIdByTrId: (trId: string) => Promise<string | undefined>;
attachmentsByTrId: (trId: string) => Promise<AttachmentLink[]>;

@@ -46,6 +49,13 @@ retriesByTr: (tr: TestResult) => Promise<TestResult[]>;

allEnvironments: () => Promise<string[]>;
testResultsByEnvironment: (env: string) => Promise<TestResult[]>;
allEnvironmentIdentities: () => Promise<EnvironmentIdentity[]>;
testResultsByEnvironment: (env: string, options?: {
includeHidden?: boolean;
}) => Promise<TestResult[]>;
testResultsByEnvironmentId: (envId: string, options?: {
includeHidden?: boolean;
}) => Promise<TestResult[]>;
allTestEnvGroups: () => Promise<TestEnvGroup[]>;
allVariables: () => Promise<Record<string, any>>;
envVariables: (env: string) => Promise<Record<string, any>>;
envVariablesByEnvironmentId: (envId: string) => Promise<Record<string, any>>;
}

@@ -59,3 +69,3 @@ export interface AllureStoreDump {

fixtures: Record<string, TestFixtureResult>;
environments: string[];
environments: Array<string | EnvironmentIdentity>;
reportVariables: ReportVariables;

@@ -66,3 +76,3 @@ qualityGateResults: QualityGateValidationResult[];

indexTestResultByTestCase: Record<string, string[]>;
indexLatestEnvTestResultByHistoryId: Record<string, string>;
indexLatestEnvTestResultByHistoryId: Record<string, string> | Record<string, Record<string, string>>;
indexAttachmentByFixture: Record<string, string[]>;

@@ -69,0 +79,0 @@ indexFixturesByTestResult: Record<string, string[]>;

@@ -18,3 +18,3 @@ import { getWorstStatus } from "@allurereport/core-api";

const createdAt = allTrs.reduce((acc, { stop }) => Math.max(acc, stop || 0), 0);
const summary = {
return {
stats: await store.testsStatistic(filter),

@@ -31,3 +31,2 @@ status: worstStatus ?? "passed",

};
return summary;
};
{
"name": "@allurereport/plugin-api",
"version": "3.3.1",
"version": "3.4.0",
"description": "Allure Plugin API",

@@ -8,41 +8,30 @@ "keywords": [

],
"repository": "https://github.com/allure-framework/allure3",
"license": "Apache-2.0",
"author": "Qameta Software",
"repository": "https://github.com/allure-framework/allure3",
"files": [
"dist"
],
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": "./dist/index.js"
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "run clean && tsc --project ./tsconfig.json",
"clean": "rimraf ./dist",
"eslint": "eslint ./src/**/*.{js,jsx,ts,tsx}",
"eslint:format": "eslint --fix ./src/**/*.{js,jsx,ts,tsx}",
"test": "rimraf ./out && vitest run"
"test": "rimraf ./out && vitest run",
"lint": "oxlint --import-plugin src test features stories",
"lint:fix": "oxlint --import-plugin --fix src test features stories"
},
"dependencies": {
"@allurereport/core-api": "3.3.1"
"@allurereport/core-api": "3.4.0"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^2.6.1",
"@types/eslint": "^8.56.11",
"@types/node": "^20.17.9",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"@vitest/runner": "^2.1.9",
"@vitest/snapshot": "^2.1.9",
"allure-vitest": "^3.3.3",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^50.0.0",
"eslint-plugin-n": "^17.10.1",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-prefer-arrow": "^1.2.3",
"rimraf": "^6.0.1",

@@ -49,0 +38,0 @@ "typescript": "^5.6.3",