New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wdio/allure-reporter

Package Overview
Dependencies
Maintainers
3
Versions
319
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/allure-reporter - npm Package Compare versions

Comparing version 8.20.0 to 8.21.0

14

build/reporter.js

@@ -6,3 +6,3 @@ import { stringify } from 'csv-stringify/sync';

import { AllureReporterState } from './state.js';
import { getTestStatus, isEmpty, isMochaEachHooks, getErrorFromFailedTest, isMochaAllHooks, getLinkByTemplate, isScreenshotCommand, getSuiteLabels, setHistoryId, isMochaBeforeEachHook, } from './utils.js';
import { getTestStatus, isEmpty, isMochaEachHooks, getErrorFromFailedTest, isMochaAllHooks, getLinkByTemplate, isScreenshotCommand, getSuiteLabels, setAllureIds, isMochaBeforeEachHook, } from './utils.js';
import { events } from './constants.js';

@@ -86,3 +86,3 @@ import { TYPE as DescriptionType } from './types.js';

if (currentTest instanceof AllureTest) {
setHistoryId(currentTest, this._state.currentSuite);
setAllureIds(currentTest, this._state.currentSuite);
currentTest.endTest();

@@ -111,3 +111,3 @@ }

if (currentTest instanceof AllureTest) {
setHistoryId(currentTest, this._state.currentSuite);
setAllureIds(currentTest, this._state.currentSuite);
currentTest.endTest();

@@ -131,3 +131,3 @@ }

if (currentSpec instanceof AllureTest) {
setHistoryId(currentSpec, this._state.currentSuite);
setAllureIds(currentSpec, this._state.currentSuite);
currentSpec.endTest();

@@ -266,3 +266,3 @@ }

currentTest.stage = Stage.PENDING;
setHistoryId(currentTest, this._state.currentSuite);
setAllureIds(currentTest, this._state.currentSuite);
currentTest.endTest();

@@ -281,3 +281,3 @@ return;

}
setHistoryId(currentTest, this._state.currentSuite);
setAllureIds(currentTest, this._state.currentSuite);
currentTest.endTest();

@@ -293,3 +293,3 @@ return;

currentTest.stage = Stage.FINISHED;
setHistoryId(currentTest, this._state.currentSuite);
setAllureIds(currentTest, this._state.currentSuite);
currentTest.endTest();

@@ -296,0 +296,0 @@ return;

@@ -58,3 +58,3 @@ import type { HookStats, TestStats, SuiteStats, CommandArgs } from '@wdio/reporter';

export declare const getSuiteLabels: ({ tags }: SuiteStats) => Label[];
export declare const setHistoryId: (test: AllureTest | undefined, suite: AllureGroup | undefined) => void;
export declare const setAllureIds: (test: AllureTest | undefined, suite: AllureGroup | undefined) => void;
//# sourceMappingURL=utils.d.ts.map
import stripAnsi from 'strip-ansi';
import { Status as AllureStatus, md5 } from 'allure-js-commons';
import { Status as AllureStatus, md5, LabelName } from 'allure-js-commons';
import CompoundError from './compoundError.js';

@@ -136,3 +136,3 @@ import { mochaEachHooks, mochaAllHooks, linkPlaceholder } from './constants.js';

};
export const setHistoryId = (test, suite) => {
export const setAllureIds = (test, suite) => {
if (!test) {

@@ -146,3 +146,10 @@ return;

.join('');
test.historyId = md5(`${suite?.name}${test.wrappedItem.name}${paramsPart}`);
const hash = md5(`${suite?.name}${test.wrappedItem.name}${paramsPart}`);
test.historyId = hash;
if ('labels' in test.wrappedItem) {
if (test.wrappedItem.labels?.find((label) => label.name === LabelName.AS_ID)) {
return;
}
}
test.testCaseId = hash;
};
{
"name": "@wdio/allure-reporter",
"version": "8.20.0",
"version": "8.21.0",
"description": "A WebdriverIO reporter plugin to create Allure Test Reports",

@@ -43,4 +43,4 @@ "author": "Boris Osipov <osipov.boris@gmail.com>",

"@types/node": "^20.1.0",
"@wdio/reporter": "8.20.0",
"@wdio/types": "8.20.0",
"@wdio/reporter": "8.21.0",
"@wdio/types": "8.21.0",
"allure-js-commons": "^2.5.0",

@@ -53,3 +53,3 @@ "csv-stringify": "^6.0.4",

},
"gitHead": "6aa9e33233a6abc832bb16d2e24aaaa382e206b6"
"gitHead": "92a7474463e872223ee26c99112e79ad7d8eb8d3"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc