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

allure-playwright

Package Overview
Dependencies
Maintainers
3
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-playwright - npm Package Compare versions

Comparing version 2.10.0 to 2.11.0

2

dist/helpers.js

@@ -7,4 +7,4 @@ "use strict";

exports.LabelName = exports.allure = void 0;
const test_1 = __importDefault(require("@playwright/test"));
const crypto_1 = require("crypto");
const test_1 = __importDefault(require("@playwright/test"));
const allure_js_commons_1 = require("allure-js-commons");

@@ -11,0 +11,0 @@ const internal_1 = require("allure-js-commons/internal");

@@ -32,5 +32,3 @@ "use strict";

constructor(options) {
this.allureWriter = process_1.default.env.PW_ALLURE_POST_PROCESSOR_FOR_TEST
? new allure_js_commons_1.MessageAllureWriter()
: undefined;
this.allureWriter = process_1.default.env.PW_ALLURE_POST_PROCESSOR_FOR_TEST ? new allure_js_commons_1.MessageAllureWriter() : undefined;
this.allureGroupCache = new Map();

@@ -71,6 +69,3 @@ this.allureTestCache = new Map();

}
const relativeFile = path_1.default
.relative(project === null || project === void 0 ? void 0 : project.testDir, test.location.file)
.split(path_1.default.sep)
.join("/");
const relativeFile = path_1.default.relative(project === null || project === void 0 ? void 0 : project.testDir, test.location.file).split(path_1.default.sep).join("/");
const nameSuites = suiteTitles.length > 0 ? `${suiteTitles.join(" ")} ` : "";

@@ -122,4 +117,3 @@ const fullName = `${relativeFile}#${nameSuites}${test.title}`;

const threadId = result.parallelIndex !== undefined ? result.parallelIndex : result.workerIndex;
const thread = process_1.default.env.ALLURE_THREAD_NAME ||
`${this.hostname}-${process_1.default.pid}-playwright-worker-${threadId}`;
const thread = process_1.default.env.ALLURE_THREAD_NAME || `${this.hostname}-${process_1.default.pid}-playwright-worker-${threadId}`;
allureTest.addLabel(allure_js_commons_1.LabelName.HOST, this.hostname);

@@ -155,5 +149,3 @@ allureTest.addLabel(allure_js_commons_1.LabelName.THREAD, thread);

addSkippedResults() {
const unprocessedCases = this.suite
.allTests()
.filter((testCase) => !this.allureTestCache.has(testCase));
const unprocessedCases = this.suite.allTests().filter((testCase) => !this.allureTestCache.has(testCase));
unprocessedCases.forEach((testCase) => {

@@ -207,5 +199,3 @@ this.onTestBegin(testCase);

if (!group) {
const parent = suite.parent
? this.ensureAllureGroupCreated(suite.parent)
: this.getAllureRuntime();
const parent = suite.parent ? this.ensureAllureGroupCreated(suite.parent) : this.getAllureRuntime();
group = parent.startGroup(suite.title);

@@ -219,5 +209,3 @@ this.allureGroupCache.set(suite, group);

if (!allureStep) {
const parent = step.parent
? this.ensureAllureStepCreated(step.parent, allureTest)
: allureTest;
const parent = step.parent ? this.ensureAllureStepCreated(step.parent, allureTest) : allureTest;
allureStep = parent.startStep(step.title);

@@ -224,0 +212,0 @@ this.allureStepCache.set(step, allureStep);

@@ -19,6 +19,3 @@ "use strict";

});
const cleanTitle = title
.replace(allure_js_commons_1.allureLabelRegexpGlobal, "")
.replace(allure_js_commons_1.allureIdRegexpGlobal, "")
.trim();
const cleanTitle = title.replace(allure_js_commons_1.allureLabelRegexpGlobal, "").replace(allure_js_commons_1.allureIdRegexpGlobal, "").trim();
return { labels, cleanTitle };

@@ -25,0 +22,0 @@ };

{
"name": "allure-playwright",
"version": "2.10.0",
"version": "2.11.0",
"description": "Allure Playwright integration",
"keywords": [
"playwright",
"allure"
],
"homepage": "https://allurereport.org/",
"repository": {
"type": "git",
"url": "https://github.com/allure-framework/allure-js.git",
"directory": "packages/allure-playwright"
},
"license": "Apache-2.0",

@@ -11,23 +21,20 @@ "author": {

},
"repository": {
"type": "git",
"url": "https://github.com/allure-framework/allure-js.git",
"directory": "packages/allure-playwright"
},
"keywords": [
"playwright",
"allure"
],
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"allure-report": "allure serve ./out/allure-results",
"clean": "rimraf ./dist ./out",
"compile": "tsc",
"generate-report": "allure generate ./out/allure-results -o ./out/allure-report --clean",
"allure-report": "allure serve ./out/allure-results",
"lint": "eslint ./src --ext .ts",
"lint:fix": "eslint ./src --ext .ts --fix",
"pretest": "run compile",
"test": "playwright test -c test",
"lint": "eslint ./src --ext .ts",
"lint:fix": "eslint ./src --ext .ts --fix"
"test": "playwright test -c test"
},
"dependencies": {
"allure-js-commons": "2.11.0"
},
"devDependencies": {

@@ -48,9 +55,3 @@ "@playwright/test": "^1.34.1",

"typescript": "^5.2.2"
},
"dependencies": {
"allure-js-commons": "2.10.0"
},
"files": [
"dist"
]
}
}

@@ -5,3 +5,3 @@ # allure-playwright

<!--<img src="https://allurereport.org/public/img/allure-report.svg" alt="Allure Report logo" style="float: right" />-->
[<img src="https://allurereport.org/public/img/allure-report.svg" height="85px" alt="Allure Report logo" align="right" />](https://allurereport.org "Allure Report")

@@ -8,0 +8,0 @@ - Learn more about Allure Report at https://allurereport.org

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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