Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@isaac.frontend/testcafe-reporter-allure

Package Overview
Dependencies
Maintainers
8
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@isaac.frontend/testcafe-reporter-allure - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

39

dist/index.js

@@ -21,5 +21,3 @@ 'use strict';

enumerable: true,
get: function () {
return e[k];
}
get: function () { return e[k]; }
});

@@ -29,3 +27,3 @@ }

}
n['default'] = e;
n["default"] = e;
return Object.freeze(n);

@@ -154,5 +152,5 @@ }

function loadCustomConfig(configFile) {
var customConfig = null;
var customConfig = {};
try {
// The presence of this config module is not guarenteed therefore this approach is needed.
// The presence of this config module is not guaranteed therefore this approach is needed.
/* eslint-disable-next-line import/no-dynamic-require,global-require */

@@ -424,11 +422,4 @@ customConfig = require(path__namespace.resolve(process.cwd(), configFile));

this.tests = {};
var config;
if (!allureConfig) {
config = new allureJsCommons.AllureConfig(reporterConfig$2.RESULT_DIR);
}
else {
config = allureConfig;
}
this.userAgents = userAgents;
this.runtime = new allureJsCommons.AllureRuntime(config);
this.runtime = new allureJsCommons.AllureRuntime(allureConfig || { resultsDir: reporterConfig$2.RESULT_DIR });
}

@@ -491,5 +482,5 @@ AllureReporter.prototype.setGlobals = function () {

}
// TODO: Add detailed error stacktrace
// How to convert CallSiteRecord to stacktrace?
var callSite = error.callsite;
var stacktrace = 'NO_STACKTRACE_DATA_FOUND';
// This info is in a bit of a transition, use the callsite object if it's available.
if (callSite) {

@@ -502,2 +493,16 @@ if (callSite.filename) {

}
// renderSync needs to be in a try catch to avoid a file not found error
// See the following github issue for details: https://github.com/inikulin/callsite-record/issues/2#issuecomment-223263941
try {
// eslint-disable-next-line global-require
var noColorRenderer = require('callsite-record').renderers.noColor;
stacktrace = error.callsite.renderSync({
renderer: noColorRenderer,
});
testDetails = addNewLine(testDetails, "Stacktrace:\n" + stacktrace);
}
catch (err) {
// eslint-disable-next-line no-console
console.error("Error in callsite.renderSync in Allure reporting:\n" + err);
}
}

@@ -658,3 +663,3 @@ if (error.userAgent) {

if (!dataPath) return [3 /*break*/, 2];
return [4 /*yield*/, rimraf__default['default'](dataPath + "/*", function () { })];
return [4 /*yield*/, rimraf__default["default"](dataPath + "/*", function () { })];
case 1:

@@ -661,0 +666,0 @@ _a.sent();

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

import { CallsiteRecord } from 'callsite-record';
export {};

@@ -20,4 +21,9 @@ declare global {

}
export declare type TestCafeError = {
errMsg: string;
originError?: string;
callsite?: CallsiteRecord;
};
export interface TestRunInfo {
errs?: object[];
errs?: TestCafeError[];
warnings?: string[];

@@ -36,5 +42,5 @@ durationMs?: number;

}
export interface CallSite {
export interface CallSite extends CallsiteRecord {
filename?: string;
lineNum?: string;
}
import { Severity } from 'allure-js-commons';
import step from './testcafe/step';
declare const reporterConfig: any;
declare const reporterConfig: {
REPORTER_CONFIG_FILE: string;
CATEGORIES_CONFIG_FILE: string;
RESULT_DIR: string;
REPORT_DIR: string;
SCREENSHOT_DIR: string;
CLEAN_RESULT_DIR: boolean;
CLEAN_REPORT_DIR: boolean;
CLEAN_SCREENSHOT_DIR: boolean;
ENABLE_SCREENSHOTS: boolean;
ENABLE_QUARANTINE: boolean;
ENABLE_LOGGING: boolean;
CONCURRENCY: number;
META: {
SEVERITY: string;
ISSUE_URL: string;
};
LABEL: {
ISSUE: string;
FLAKY: string;
SCREENSHOT_MANUAL: string;
SCREENSHOT_ON_FAIL: string;
DEFAULT_STEP_NAME: string;
};
};
export { step, reporterConfig, Severity };

@@ -18,5 +18,3 @@ 'use strict';

enumerable: true,
get: function () {
return e[k];
}
get: function () { return e[k]; }
});

@@ -26,3 +24,3 @@ }

}
n['default'] = e;
n["default"] = e;
return Object.freeze(n);

@@ -137,5 +135,5 @@ }

function loadCustomConfig(configFile) {
var customConfig = null;
var customConfig = {};
try {
// The presence of this config module is not guarenteed therefore this approach is needed.
// The presence of this config module is not guaranteed therefore this approach is needed.
/* eslint-disable-next-line import/no-dynamic-require,global-require */

@@ -227,7 +225,5 @@ customConfig = require(path__namespace.resolve(process.cwd(), configFile));

enumerable: true,
get: function () {
return allureJsCommons.Severity;
}
get: function () { return allureJsCommons.Severity; }
});
exports.reporterConfig = reporterConfig;
exports.step = step;

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

export declare function loadReporterConfig(): any;
declare const defaultReporterConfig: {
REPORTER_CONFIG_FILE: string;
CATEGORIES_CONFIG_FILE: string;
RESULT_DIR: string;
REPORT_DIR: string;
SCREENSHOT_DIR: string;
CLEAN_RESULT_DIR: boolean;
CLEAN_REPORT_DIR: boolean;
CLEAN_SCREENSHOT_DIR: boolean;
ENABLE_SCREENSHOTS: boolean;
ENABLE_QUARANTINE: boolean;
ENABLE_LOGGING: boolean;
CONCURRENCY: number;
META: {
SEVERITY: string;
ISSUE_URL: string;
};
LABEL: {
ISSUE: string;
FLAKY: string;
SCREENSHOT_MANUAL: string;
SCREENSHOT_ON_FAIL: string;
DEFAULT_STEP_NAME: string;
};
};
export declare type ReporterConfig = typeof defaultReporterConfig;
export declare function loadReporterConfig(): {
REPORTER_CONFIG_FILE: string;
CATEGORIES_CONFIG_FILE: string;
RESULT_DIR: string;
REPORT_DIR: string;
SCREENSHOT_DIR: string;
CLEAN_RESULT_DIR: boolean;
CLEAN_REPORT_DIR: boolean;
CLEAN_SCREENSHOT_DIR: boolean;
ENABLE_SCREENSHOTS: boolean;
ENABLE_QUARANTINE: boolean;
ENABLE_LOGGING: boolean;
CONCURRENCY: number;
META: {
SEVERITY: string;
ISSUE_URL: string;
};
LABEL: {
ISSUE: string;
FLAKY: string;
SCREENSHOT_MANUAL: string;
SCREENSHOT_ON_FAIL: string;
DEFAULT_STEP_NAME: string;
};
};
export declare function loadCategoriesConfig(): any;
export {};
/// <reference types="node" />
import { Category, TestResult, TestResultContainer } from 'allure-js-commons';
import { IAllureWriter } from 'allure-js-commons/dist/src/writers';
export declare class AllureTestWriter implements IAllureWriter {
import { AllureWriter } from 'allure-js-commons/dist/src/writers';
import { PathLike } from 'fs';
export declare class AllureTestWriter implements AllureWriter {
reporter: any;

@@ -13,2 +14,3 @@ constructor(reporter: any);

writeResult(result: TestResult): void;
writeAttachmentFromPath(_fromPath: PathLike, _fileName: string): void;
}
{
"name": "@isaac.frontend/testcafe-reporter-allure",
"version": "2.2.1",
"version": "2.3.0",
"author": "ISAAC E-commerce Solutions BV",

@@ -46,3 +46,4 @@ "license": "MIT",

"dependencies": {
"allure-js-commons": "2.0.0-beta.8",
"callsite-record": "4.1.3",
"allure-js-commons": "^2.0.0-beta.13",
"lodash": "^4.17.21",

@@ -53,42 +54,41 @@ "rimraf": "^3.0.2",

"devDependencies": {
"@commitlint/cli": "13.1.0",
"@commitlint/config-conventional": "13.1.0",
"@rollup/plugin-typescript": "8.2.5",
"@semantic-release/changelog": "5.0.1",
"@semantic-release/commit-analyzer": "8.0.1",
"@semantic-release/git": "9.0.1",
"@semantic-release/npm": "7.1.3",
"@semantic-release/release-notes-generator": "9.0.3",
"@types/fs-extra": "9.0.12",
"@types/jest": "27.0.1",
"@commitlint/cli": "14.1.0",
"@commitlint/config-conventional": "14.1.0",
"@rollup/plugin-typescript": "8.3.0",
"@semantic-release/changelog": "6.0.1",
"@semantic-release/commit-analyzer": "9.0.1",
"@semantic-release/git": "10.0.1",
"@semantic-release/npm": "8.0.3",
"@semantic-release/release-notes-generator": "10.0.2",
"@types/fs-extra": "9.0.13",
"@types/jest": "27.0.2",
"@types/rimraf": "3.0.2",
"@types/uuid": "8.3.1",
"@typescript-eslint/eslint-plugin": "4.31.0",
"@typescript-eslint/parser": "4.31.0",
"@typescript-eslint/eslint-plugin": "5.3.0",
"@typescript-eslint/parser": "5.3.0",
"allure-commandline": "2.13.8",
"callsite-record": "4.1.3",
"eslint": "7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-airbnb-typescript": "14.0.0",
"eslint": "8.2.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-config-airbnb-typescript": "15.0.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-jest": "24.4.0",
"eslint-plugin-import": "2.25.2",
"eslint-plugin-jest": "25.2.3",
"eslint-plugin-prettier": "4.0.0",
"fs-extra": "10.0.0",
"globby": "11.0.4",
"husky": "7.0.2",
"is-ci": "3.0.0",
"jest": "27.1.1",
"lint-staged": "11.1.2",
"husky": "7.0.4",
"is-ci": "3.0.1",
"jest": "27.3.1",
"lint-staged": "11.2.6",
"normalize-newline": "3.0.0",
"npm-run-all": "4.1.5",
"prettier": "2.4.0",
"rollup": "2.56.3",
"prettier": "2.4.1",
"rollup": "2.59.0",
"rollup-plugin-typescript2": "0.30.0",
"semantic-release": "17.4.7",
"testcafe": "1.16.0",
"ts-jest": "27.0.5",
"typescript": "4.4.3",
"semantic-release": "18.0.0",
"testcafe": "1.17.0",
"ts-jest": "27.0.7",
"typescript": "4.4.4",
"vuepress": "1.8.2"
}
}
# @isaac.frontend/testcafe-reporter-allure
[![GitHub](https://img.shields.io/github/license/isaaceindhoven/testcafe-reporter-allure)](https://github.com/isaaceindhoven/testcafe-reporter-allure/blob/master/LICENSE) [![NPM downloads per week](https://img.shields.io/npm/dw/@isaac.frontend/testcafe-reporter-allure)](https://www.npmjs.com/package/@isaac.frontend/testcafe-reporter-allure) [![npm (scoped)](https://img.shields.io/npm/v/@isaac.frontend/testcafe-reporter-allure)](https://www.npmjs.com/package/@isaac.frontend/testcafe-reporter-allure) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![GitHub](https://img.shields.io/github/license/isaaceindhoven/testcafe-reporter-allure)](https://github.com/isaaceindhoven/testcafe-reporter-allure/blob/main/LICENSE) [![NPM downloads per week](https://img.shields.io/npm/dw/@isaac.frontend/testcafe-reporter-allure)](https://www.npmjs.com/package/@isaac.frontend/testcafe-reporter-allure) [![npm (scoped)](https://img.shields.io/npm/v/@isaac.frontend/testcafe-reporter-allure)](https://www.npmjs.com/package/@isaac.frontend/testcafe-reporter-allure) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

@@ -14,6 +14,6 @@ An [Allure](https://allure.qatools.ru/) reporter plugin for [TestCafé](https://devexpress.github.io/testcafe/).

More information can be found in [CONTRIBUTING](https://github.com/isaaceindhoven/testcafe-reporter-allure/blob/master/CONTRIBUTING.md).
More information can be found in [CONTRIBUTING](https://github.com/isaaceindhoven/testcafe-reporter-allure/blob/main/CONTRIBUTING.md).
## License
[MIT](https://github.com/isaaceindhoven/testcafe-reporter-allure/blob/master/LICENSE) © ISAAC E-commerce Solutions BV
[MIT](https://github.com/isaaceindhoven/testcafe-reporter-allure/blob/main/LICENSE) © ISAAC E-commerce Solutions BV
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