🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

playwright-ci-reporter

Package Overview
Dependencies
Maintainers
0
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

to
1.5.2

7

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 @@

14

dist/CustomReporter.js

@@ -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": {