🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

playwright-ci-reporter

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playwright-ci-reporter - npm Package Compare versions

Comparing version
1.5.1
to
1.5.2
+7
-0
CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [1.5.2](https://github.com/basal-john/playwright-ci-reporter/compare/v1.5.1...v1.5.2) (2025-02-17)
### Bug Fixes
* correct punctuation in failure quote ([95333c1](https://github.com/basal-john/playwright-ci-reporter/commit/95333c1b7c95f24babb2153d6fff46395777c1c2))
### [1.5.1](https://github.com/basal-john/playwright-ci-reporter/compare/v1.5.0...v1.5.1) (2025-01-09)

@@ -7,0 +14,0 @@

+7
-7

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

const Quotes_1 = require("./Quotes");
const utils_1 = require("./utils");
const Utils_1 = require("./Utils");
/**

@@ -108,5 +108,5 @@ * CustomReporterConfig is a modern, maintainable reporter for Playwright tests.

const totalTimeSec = (endTime - this._startTime) / 1000;
const totalTimeDisplay = utils_1.TestUtils.formatTime(totalTimeSec);
const totalTimeDisplay = Utils_1.TestUtils.formatTime(totalTimeSec);
// Process results
const { passedCount, testCount, skippedCount, failures, passedDurations } = utils_1.TestUtils.processTestResults(this._testRecords);
const { passedCount, testCount, skippedCount, failures, passedDurations } = Utils_1.TestUtils.processTestResults(this._testRecords);
// Handle no tests case

@@ -124,10 +124,10 @@ if (testCount === 0) {

totalTimeDisplay,
averageTime: utils_1.TestUtils.calculateAverageTime(passedDurations),
averageTime: Utils_1.TestUtils.calculateAverageTime(passedDurations),
slowestTest: Math.max(...passedDurations, 0),
slowestTests: utils_1.TestUtils.findSlowestTests(this._testRecords, this._config.maxSlowTestsToShow),
slowestTests: Utils_1.TestUtils.findSlowestTests(this._testRecords, this._config.maxSlowTestsToShow),
};
// Log results
utils_1.Logger.logSummary(summary);
Utils_1.Logger.logSummary(summary);
if (failures.length > 0) {
utils_1.Logger.logFailures(failures);
Utils_1.Logger.logFailures(failures);
console.log(`${Colors_1.colors.fgRed}"${(0, Quotes_1.getRandomQuote)(Quotes_1.FAILURE_QUOTES)}"${Colors_1.colors.reset}`);

@@ -134,0 +134,0 @@ process.exit(1);

@@ -14,3 +14,3 @@ "use strict";

'Keep calm and write more tests',
"Tests: 'I'll be back... failing' - Terminator",
"Tests: 'I'll be back.... failing' - Terminator",
'The first rule of Test Club: Always talk about Test Club - Fight Club',

@@ -17,0 +17,0 @@ 'Houston, we have a testing problem - Apollo 13',

{
"name": "playwright-ci-reporter",
"version": "1.5.1",
"version": "1.5.2",
"description": "A CI-friendly custom reporter for Playwright tests with enhanced logging.",

@@ -20,15 +20,15 @@ "main": "dist/CustomReporter.js",

"dependencies": {
"essential-common-utils": "^1.4.4",
"winston": "^3.8.2"
"essential-common-utils": "^1.6.0",
"winston": "^3.17.0"
},
"devDependencies": {
"@playwright/test": "^1.49.0",
"@types/node": "^20.6.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"@playwright/test": "^1.50.1",
"@types/node": "^22.13.4",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.3",
"jest": "^29.7.0",
"prettier": "^3.4.1",
"prettier": "^3.5.1",
"standard-version": "^9.5.0",
"ts-jest": "^29.2.5",
"typescript": "^5.3.3"
"typescript": "^5.7.3"
},

@@ -35,0 +35,0 @@ "scripts": {

Arguments:
/Users/basalona/.nvm/versions/node/v20.11.1/bin/node /opt/homebrew/bin/yarn test
PATH:
/Users/basalona/.nvm/versions/node/v20.11.1/bin:/Users/basalona/.docker/bin:/Users/basalona/Documents/Users/basalona/Documents/google-cloud-sdk/bin:/opt/homebrew/opt/php@7.4/sbin:/opt/homebrew/opt/php@7.4/bin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/basalona/Library/Application Support/JetBrains/Toolbox/scripts
Yarn version:
1.22.19
Node version:
20.11.1
Platform:
darwin arm64
Trace:
SyntaxError: /Users/basalona/Documents/repos/playwright-ci-reporter/package.json: Expected double-quoted property name in JSON at position 1148
at JSON.parse (<anonymous>)
at /opt/homebrew/lib/node_modules/yarn/lib/cli.js:1629:59
at Generator.next (<anonymous>)
at step (/opt/homebrew/lib/node_modules/yarn/lib/cli.js:310:30)
at /opt/homebrew/lib/node_modules/yarn/lib/cli.js:321:13
npm manifest:
{
"name": "playwright-ci-reporter",
"version": "1.3.1",
"description": "A CI-friendly custom reporter for Playwright tests with enhanced logging.",
"main": "dist/CustomReporter.js",
"types": "dist/CustomReporter.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/basal-john/playwright-ci-reporter.git"
},
"keywords": [
"playwright",
"ci",
"reporter",
"logger"
],
"author": "Basal John",
"license": "MIT",
"dependencies": {
"essential-common-utils": "^1.4.4",
"winston": "^3.8.2"
},
"devDependencies": {
"@playwright/test": "^1.49.0",
"@types/node": "^20.6.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.4.1",
"standard-version": "^9.5.0",
"typescript": "^5.3.3"
},
"scripts": {
"build": "tsc",
"lint": "eslint . --fix && prettier . --write",
"prettier": "prettier . --write",
"release": "standard-version",
"test": "jest",
"test:watch": "jest --watch",
}
}
yarn manifest:
No manifest
Lockfile:
No lockfile