allure-codeceptjs 2.15.1 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -19
- package/dist/cjs/helpers.js +50 -0
- package/dist/cjs/helpers.js.map +1 -0
- package/dist/cjs/index.js +21 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/legacy.js +115 -0
- package/dist/cjs/legacy.js.map +1 -0
- package/dist/cjs/model.js +2 -0
- package/dist/cjs/model.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/reporter.js +225 -0
- package/dist/cjs/reporter.js.map +1 -0
- package/dist/cjs/runtime.js +28 -0
- package/dist/cjs/runtime.js.map +1 -0
- package/dist/esm/helpers.js +43 -0
- package/dist/esm/helpers.js.map +1 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/legacy.js +108 -0
- package/dist/esm/legacy.js.map +1 -0
- package/dist/esm/model.js +2 -0
- package/dist/esm/model.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/reporter.js +217 -0
- package/dist/esm/reporter.js.map +1 -0
- package/dist/esm/runtime.js +21 -0
- package/dist/esm/runtime.js.map +1 -0
- package/dist/helpers.d.ts +2 -2
- package/dist/index.d.ts +3 -79
- package/dist/legacy.d.ts +30 -0
- package/dist/{codecept-types.d.ts → model.d.ts} +5 -2
- package/dist/reporter.d.ts +34 -0
- package/dist/runtime.d.ts +8 -0
- package/package.json +39 -19
- package/dist/codecept-types.js +0 -3
- package/dist/codecept-types.js.map +0 -1
- package/dist/helpers.js +0 -23
- package/dist/helpers.js.map +0 -1
- package/dist/index.js +0 -328
- package/dist/index.js.map +0 -1
package/dist/legacy.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export interface AllureCodeceptJsLegacyApi {
|
|
3
|
+
label: (name: string, value: string) => Promise<void>;
|
|
4
|
+
link: (type: string, url: string, name?: string) => Promise<void>;
|
|
5
|
+
parameter: (name: string, value: string, options?: {
|
|
6
|
+
excluded?: boolean;
|
|
7
|
+
mode?: "hidden" | "masked" | "default";
|
|
8
|
+
}) => Promise<void>;
|
|
9
|
+
description: (markdown: string) => Promise<void>;
|
|
10
|
+
descriptionHtml: (html: string) => Promise<void>;
|
|
11
|
+
testCaseId: (id: string) => Promise<void>;
|
|
12
|
+
historyId: (id: string) => Promise<void>;
|
|
13
|
+
allureId: (id: string) => Promise<void>;
|
|
14
|
+
displayName: (name: string) => Promise<void>;
|
|
15
|
+
attachment: (name: string, content: Buffer | string, type: string) => Promise<void>;
|
|
16
|
+
issue: (name: string, url: string) => Promise<void>;
|
|
17
|
+
tms: (name: string, url: string) => Promise<void>;
|
|
18
|
+
epic: (name: string) => Promise<void>;
|
|
19
|
+
feature: (name: string) => Promise<void>;
|
|
20
|
+
story: (name: string) => Promise<void>;
|
|
21
|
+
suite: (name: string) => Promise<void>;
|
|
22
|
+
parentSuite: (name: string) => Promise<void>;
|
|
23
|
+
subSuite: (name: string) => Promise<void>;
|
|
24
|
+
owner: (name: string) => Promise<void>;
|
|
25
|
+
severity: (name: string) => Promise<void>;
|
|
26
|
+
layer: (name: string) => Promise<void>;
|
|
27
|
+
tag: (name: string) => Promise<void>;
|
|
28
|
+
step: (name: string, body: () => Promise<void>) => Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
export declare const allureCodeceptJsLegacyApi: AllureCodeceptJsLegacyApi;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Config } from "allure-js-commons/sdk/reporter";
|
|
2
2
|
export interface CodeceptError {
|
|
3
3
|
params: any;
|
|
4
4
|
template: string;
|
|
@@ -21,6 +21,9 @@ export interface CodeceptStep {
|
|
|
21
21
|
metaStep: CodeceptStep;
|
|
22
22
|
toString: () => string;
|
|
23
23
|
}
|
|
24
|
-
export type CodeceptSuite = Mocha.
|
|
24
|
+
export type CodeceptSuite = Mocha.Suite;
|
|
25
25
|
export type CodeceptHook = Mocha.Hook;
|
|
26
26
|
export type CodeceptTest = Mocha.Runnable;
|
|
27
|
+
export interface AllureCodeceptJsConfig extends Config {
|
|
28
|
+
testMode?: boolean;
|
|
29
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type RuntimeMessage } from "allure-js-commons/sdk";
|
|
2
|
+
import { ReporterRuntime } from "allure-js-commons/sdk/reporter";
|
|
3
|
+
import type { AllureCodeceptJsConfig, CodeceptError, CodeceptHook, CodeceptStep, CodeceptTest } from "./model.js";
|
|
4
|
+
export declare class AllureCodeceptJsReporter {
|
|
5
|
+
allureRuntime?: ReporterRuntime;
|
|
6
|
+
currentAllureResultUuid?: string;
|
|
7
|
+
currentTest: CodeceptTest | null;
|
|
8
|
+
config: AllureCodeceptJsConfig;
|
|
9
|
+
constructor(config: AllureCodeceptJsConfig);
|
|
10
|
+
private closeCurrentAllureTest;
|
|
11
|
+
private startAllureTest;
|
|
12
|
+
private closeCurrentAllureStep;
|
|
13
|
+
registerEvents(): void;
|
|
14
|
+
hookStarted(hook: CodeceptHook): void;
|
|
15
|
+
hookPassed(): void;
|
|
16
|
+
testStarted(test: CodeceptTest & {
|
|
17
|
+
tags: string[];
|
|
18
|
+
}): void;
|
|
19
|
+
testFailed(test: CodeceptTest, err: CodeceptError): void;
|
|
20
|
+
testPassed(test: CodeceptTest): void;
|
|
21
|
+
testSkipped(test: CodeceptTest & {
|
|
22
|
+
opts: {
|
|
23
|
+
skipInfo: {
|
|
24
|
+
message: string;
|
|
25
|
+
isFastSkipped: boolean;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}): void;
|
|
29
|
+
stepStarted(step: CodeceptStep): void;
|
|
30
|
+
stepFailed(): void;
|
|
31
|
+
stepComment(): void;
|
|
32
|
+
stepPassed(): void;
|
|
33
|
+
handleRuntimeMessage(message: RuntimeMessage): void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RuntimeMessage } from "allure-js-commons/sdk";
|
|
2
|
+
import { MessageTestRuntime } from "allure-js-commons/sdk/runtime";
|
|
3
|
+
import type { AllureCodeceptJsReporter } from "./reporter.js";
|
|
4
|
+
export declare class AllureCodeceptJsTestRuntime extends MessageTestRuntime {
|
|
5
|
+
private readonly reporter;
|
|
6
|
+
constructor(reporter: AllureCodeceptJsReporter);
|
|
7
|
+
sendMessage(message: RuntimeMessage): Promise<void>;
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "allure-codeceptjs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
4
4
|
"description": "Allure codeceptjs integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codeceptjs",
|
|
@@ -13,42 +13,62 @@
|
|
|
13
13
|
"directory": "packages/allure-codeceptjs"
|
|
14
14
|
},
|
|
15
15
|
"license": "Apache-2.0",
|
|
16
|
-
"
|
|
17
|
-
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"import": "./dist/esm/index.js",
|
|
19
|
+
"require": "./dist/cjs/index.js",
|
|
20
|
+
"types": "./dist/types/index.d.ts"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/cjs/index.js",
|
|
24
|
+
"module": "./dist/esm/index.js",
|
|
25
|
+
"types": "./dist/types/index.d.ts",
|
|
18
26
|
"files": [
|
|
19
27
|
"dist"
|
|
20
28
|
],
|
|
21
29
|
"scripts": {
|
|
22
30
|
"clean": "rimraf ./dist ./out ./test-results",
|
|
23
|
-
"compile": "
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
31
|
+
"compile": "run-s 'compile:*'",
|
|
32
|
+
"compile:esm": "babel --config-file ./babel.esm.json ./src --out-dir ./dist/esm --extensions '.ts' --source-maps",
|
|
33
|
+
"compile:cjs": "babel --config-file ./babel.cjs.json ./src --out-dir ./dist/cjs --extensions '.ts' --source-maps",
|
|
34
|
+
"compile:types": "tsc --declaration --emitDeclarationOnly",
|
|
35
|
+
"compile:fixup": "node ./scripts/fixup.mjs",
|
|
36
|
+
"lint": "eslint ./src ./test --ext .ts",
|
|
37
|
+
"lint:fix": "eslint ./src ./test --ext .ts --fix",
|
|
38
|
+
"test": "vitest run"
|
|
27
39
|
},
|
|
28
40
|
"dependencies": {
|
|
29
|
-
"allure-js-commons": "
|
|
41
|
+
"allure-js-commons": "3.0.0-beta.1"
|
|
30
42
|
},
|
|
31
43
|
"devDependencies": {
|
|
32
|
-
"@
|
|
44
|
+
"@babel/cli": "^7.24.6",
|
|
45
|
+
"@babel/core": "^7.24.6",
|
|
46
|
+
"@babel/plugin-transform-modules-commonjs": "^7.24.6",
|
|
47
|
+
"@babel/preset-env": "^7.24.6",
|
|
48
|
+
"@babel/preset-typescript": "^7.24.6",
|
|
49
|
+
"@codeceptjs/configure": "^1.0.0",
|
|
50
|
+
"@codeceptjs/helper": "^2.0.4",
|
|
51
|
+
"@types/babel__core": "^7",
|
|
52
|
+
"@types/babel__preset-env": "^7",
|
|
33
53
|
"@types/eslint": "^8",
|
|
34
|
-
"@types/
|
|
54
|
+
"@types/jasmine": "^5.1.4",
|
|
35
55
|
"@types/node": "^20.6.3",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
37
|
-
"@typescript-eslint/parser": "^
|
|
38
|
-
"
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
57
|
+
"@typescript-eslint/parser": "^7.0.0",
|
|
58
|
+
"babel-plugin-add-module-exports": "^1.0.4",
|
|
39
59
|
"codeceptjs": "^3.5.4",
|
|
40
|
-
"eslint": "^8.
|
|
60
|
+
"eslint": "^8.57.0",
|
|
41
61
|
"eslint-config-prettier": "^9.0.0",
|
|
42
62
|
"eslint-plugin-import": "^2.28.1",
|
|
43
63
|
"eslint-plugin-jsdoc": "^48.0.0",
|
|
64
|
+
"eslint-plugin-n": "^17.0.0",
|
|
44
65
|
"eslint-plugin-no-null": "^1.0.2",
|
|
45
66
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
46
67
|
"expect": "^29.7.0",
|
|
47
|
-
"
|
|
48
|
-
"mocha": "^10.2.0",
|
|
49
|
-
"mocha-multi-reporters": "^1.5.1",
|
|
68
|
+
"npm-run-all2": "^6.1.2",
|
|
50
69
|
"rimraf": "^5.0.1",
|
|
51
|
-
"ts-node": "^10.9.
|
|
52
|
-
"typescript": "^5.2.2"
|
|
70
|
+
"ts-node": "^10.9.2",
|
|
71
|
+
"typescript": "^5.2.2",
|
|
72
|
+
"vitest": "^1.5.0"
|
|
53
73
|
}
|
|
54
74
|
}
|
package/dist/codecept-types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codecept-types.js","sourceRoot":"","sources":["../src/codecept-types.ts"],"names":[],"mappings":""}
|
package/dist/helpers.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.extractMeta = void 0;
|
|
4
|
-
const allure_js_commons_1 = require("allure-js-commons");
|
|
5
|
-
const extractMeta = (test) => {
|
|
6
|
-
const labels = test.tags.map((tag) => {
|
|
7
|
-
var _a;
|
|
8
|
-
const idMatch = tag.match(allure_js_commons_1.allureIdRegexp);
|
|
9
|
-
const idValue = (_a = idMatch === null || idMatch === void 0 ? void 0 : idMatch.groups) === null || _a === void 0 ? void 0 : _a.id;
|
|
10
|
-
if (idValue) {
|
|
11
|
-
return { name: allure_js_commons_1.LabelName.ALLURE_ID, value: idValue };
|
|
12
|
-
}
|
|
13
|
-
const labelMatch = tag.match(allure_js_commons_1.allureLabelRegexp);
|
|
14
|
-
const { name, value } = (labelMatch === null || labelMatch === void 0 ? void 0 : labelMatch.groups) || {};
|
|
15
|
-
if (name && value) {
|
|
16
|
-
return { name, value };
|
|
17
|
-
}
|
|
18
|
-
return { name: allure_js_commons_1.LabelName.TAG, value: tag };
|
|
19
|
-
});
|
|
20
|
-
return { labels };
|
|
21
|
-
};
|
|
22
|
-
exports.extractMeta = extractMeta;
|
|
23
|
-
//# sourceMappingURL=helpers.js.map
|
package/dist/helpers.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../src/helpers.ts"],"names":[],"mappings":";;;AAAA,yDAAwF;AAGjF,MAAM,WAAW,GAAG,CAAC,IAAuC,EAAE,EAAE;IACrE,MAAM,MAAM,GAAY,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;;QAC5C,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,kCAAc,CAAC,CAAC;QAC1C,MAAM,OAAO,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,0CAAE,EAAE,CAAC;QACpC,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,EAAE,IAAI,EAAE,6BAAS,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QACvD,CAAC;QAED,MAAM,UAAU,GAAG,GAAG,CAAC,KAAK,CAAC,qCAAiB,CAAC,CAAC;QAChD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,KAAI,EAAE,CAAC;QACjD,IAAI,IAAI,IAAI,KAAK,EAAE,CAAC;YAClB,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QACzB,CAAC;QAED,OAAO,EAAE,IAAI,EAAE,6BAAS,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,OAAO,EAAE,MAAM,EAAE,CAAC;AACpB,CAAC,CAAC;AAlBW,QAAA,WAAW,eAkBtB"}
|
package/dist/index.js
DELETED
|
@@ -1,328 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
const codeceptjs_1 = require("codeceptjs");
|
|
6
|
-
const path_1 = __importDefault(require("path"));
|
|
7
|
-
const process_1 = __importDefault(require("process"));
|
|
8
|
-
const allure_js_commons_1 = require("allure-js-commons");
|
|
9
|
-
const helpers_1 = require("./helpers");
|
|
10
|
-
class AllureReporter {
|
|
11
|
-
constructor(config) {
|
|
12
|
-
this.allureGroupCache = new Map();
|
|
13
|
-
this.allureTestCache = new Map();
|
|
14
|
-
this.allureWriter = process_1.default.env.ALLURE_POST_PROCESSOR_FOR_TEST ? new allure_js_commons_1.MessageAllureWriter() : undefined;
|
|
15
|
-
this.allureStepCache = new Map();
|
|
16
|
-
this.currentTest = null;
|
|
17
|
-
this.severity = (severity) => {
|
|
18
|
-
this.addLabel(allure_js_commons_1.LabelName.SEVERITY, severity);
|
|
19
|
-
};
|
|
20
|
-
this.epic = (epic) => {
|
|
21
|
-
this.addLabel(allure_js_commons_1.LabelName.EPIC, epic);
|
|
22
|
-
};
|
|
23
|
-
this.feature = (feature) => {
|
|
24
|
-
this.addLabel(allure_js_commons_1.LabelName.FEATURE, feature);
|
|
25
|
-
};
|
|
26
|
-
this.story = (story) => {
|
|
27
|
-
this.addLabel(allure_js_commons_1.LabelName.STORY, story);
|
|
28
|
-
};
|
|
29
|
-
this.description = (description) => {
|
|
30
|
-
if (this.currentAllureTest) {
|
|
31
|
-
this.currentAllureTest.description = description;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
this.registerEvents();
|
|
35
|
-
const resultsDir = (0, allure_js_commons_1.allureReportFolder)(config.outputDir);
|
|
36
|
-
this.allureRuntime = new allure_js_commons_1.AllureRuntime({ resultsDir, writer: this.allureWriter });
|
|
37
|
-
this.reporterOptions = config || {};
|
|
38
|
-
}
|
|
39
|
-
registerEvents() {
|
|
40
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.suite.before, this.suiteStarted.bind(this));
|
|
41
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.suite.after, this.suiteFinished.bind(this));
|
|
42
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.hook.started, this.hookStarted.bind(this));
|
|
43
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.hook.passed, this.hookPassed.bind(this));
|
|
44
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.test.started, this.testStarted.bind(this));
|
|
45
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.test.skipped, this.testSkipped.bind(this));
|
|
46
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.test.passed, this.testPassed.bind(this));
|
|
47
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.test.failed, this.testFailed.bind(this));
|
|
48
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.test.after, this.testAfter.bind(this));
|
|
49
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.step.started, this.stepStarted.bind(this));
|
|
50
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.step.passed, this.stepPassed.bind(this));
|
|
51
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.step.failed, this.stepFailed.bind(this));
|
|
52
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.step.finished, this.stepFinished.bind(this));
|
|
53
|
-
codeceptjs_1.event.dispatcher.addListener(codeceptjs_1.event.step.comment, this.stepComment.bind(this));
|
|
54
|
-
}
|
|
55
|
-
hookStarted(hook) {
|
|
56
|
-
var _a;
|
|
57
|
-
this.currentTest = ((_a = hook.ctx) === null || _a === void 0 ? void 0 : _a.currentTest) || null;
|
|
58
|
-
}
|
|
59
|
-
hookPassed(hook) {
|
|
60
|
-
this.currentTest = null;
|
|
61
|
-
}
|
|
62
|
-
createTest(test) {
|
|
63
|
-
const suite = test.parent;
|
|
64
|
-
const group = this.ensureAllureGroupCreated(suite);
|
|
65
|
-
const allureTest = group.startTest(test.title);
|
|
66
|
-
this.allureStepCache.set(allureTest, new Map());
|
|
67
|
-
allureTest.addLabel(allure_js_commons_1.LabelName.LANGUAGE, "javascript");
|
|
68
|
-
allureTest.addLabel(allure_js_commons_1.LabelName.FRAMEWORK, "codeceptjs");
|
|
69
|
-
const relativeFile = path_1.default.relative(codecept_dir, test.file).split(path_1.default.sep).join("/");
|
|
70
|
-
const fullName = `${relativeFile}#${test.title}`;
|
|
71
|
-
if (suite.title) {
|
|
72
|
-
allureTest.addLabel(allure_js_commons_1.LabelName.SUITE, suite.title);
|
|
73
|
-
}
|
|
74
|
-
allureTest.stage = allure_js_commons_1.Stage.PENDING;
|
|
75
|
-
allureTest.fullName = fullName;
|
|
76
|
-
allureTest.testCaseId = (0, allure_js_commons_1.md5)(fullName);
|
|
77
|
-
allureTest.historyId = (0, allure_js_commons_1.md5)(fullName);
|
|
78
|
-
this.allureTestCache.set(test, allureTest);
|
|
79
|
-
}
|
|
80
|
-
suiteStarted(suite) {
|
|
81
|
-
suite.tests.forEach((test) => {
|
|
82
|
-
this.createTest(test);
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
allureTestByCodeceptTest(test) {
|
|
86
|
-
var _a;
|
|
87
|
-
let allureTest = this.allureTestCache.get(test);
|
|
88
|
-
if (!allureTest) {
|
|
89
|
-
allureTest = this.allureTestCache.get((_a = test.ctx) === null || _a === void 0 ? void 0 : _a.currentTest);
|
|
90
|
-
}
|
|
91
|
-
if (!allureTest) {
|
|
92
|
-
this.debug();
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
return allureTest;
|
|
96
|
-
}
|
|
97
|
-
allureStepByCodeceptStep(step, allureTest) {
|
|
98
|
-
const steps = this.allureStepCache.get(allureTest);
|
|
99
|
-
const allureStep = steps === null || steps === void 0 ? void 0 : steps.get(step);
|
|
100
|
-
if (!allureStep) {
|
|
101
|
-
this.debug();
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
return allureStep;
|
|
105
|
-
}
|
|
106
|
-
allureSuiteByCodeceptSuite(suite) {
|
|
107
|
-
const group = this.allureGroupCache.get(suite);
|
|
108
|
-
if (!group) {
|
|
109
|
-
this.debug();
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
return group;
|
|
113
|
-
}
|
|
114
|
-
suiteFinished(suite) {
|
|
115
|
-
const group = this.allureSuiteByCodeceptSuite(suite);
|
|
116
|
-
group === null || group === void 0 ? void 0 : group.endGroup();
|
|
117
|
-
}
|
|
118
|
-
testStarted(test) {
|
|
119
|
-
this.currentTest = test;
|
|
120
|
-
const allureTest = this.allureTestByCodeceptTest(test);
|
|
121
|
-
const { labels } = (0, helpers_1.extractMeta)(test);
|
|
122
|
-
if (allureTest) {
|
|
123
|
-
labels.forEach((label) => {
|
|
124
|
-
allureTest.addLabel(label.name, label.value);
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
testFailed(test, err) {
|
|
129
|
-
const allureTest = this.allureTestByCodeceptTest(test);
|
|
130
|
-
if (allureTest) {
|
|
131
|
-
allureTest.statusDetails = { message: (0, allure_js_commons_1.stripAscii)(err.message) };
|
|
132
|
-
allureTest.stage = allure_js_commons_1.Stage.FINISHED;
|
|
133
|
-
allureTest.status = allure_js_commons_1.Status.FAILED;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
testPassed(test) {
|
|
137
|
-
const allureTest = this.allureTestByCodeceptTest(test);
|
|
138
|
-
if (allureTest) {
|
|
139
|
-
allureTest.stage = allure_js_commons_1.Stage.FINISHED;
|
|
140
|
-
allureTest.status = allure_js_commons_1.Status.PASSED;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
testSkipped(test) {
|
|
144
|
-
const allureTest = this.allureTestByCodeceptTest(test);
|
|
145
|
-
if (allureTest) {
|
|
146
|
-
allureTest.stage = allure_js_commons_1.Stage.FINISHED;
|
|
147
|
-
allureTest.status = allure_js_commons_1.Status.SKIPPED;
|
|
148
|
-
if (test.opts.skipInfo) {
|
|
149
|
-
allureTest.statusDetails = { message: test.opts.skipInfo.message };
|
|
150
|
-
}
|
|
151
|
-
allureTest.endTest();
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
testAfter(test) {
|
|
155
|
-
const currentRetry = test._currentRetry;
|
|
156
|
-
if (currentRetry !== 0) {
|
|
157
|
-
test = test._retriedTest;
|
|
158
|
-
}
|
|
159
|
-
const allureTest = this.allureTestByCodeceptTest(test);
|
|
160
|
-
allureTest === null || allureTest === void 0 ? void 0 : allureTest.endTest();
|
|
161
|
-
this.currentTest = null;
|
|
162
|
-
if (test.state === "failed" && test._retries !== 0 && currentRetry !== test._retries) {
|
|
163
|
-
this.createTest(test);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
getStepParents(step) {
|
|
167
|
-
const parents = [];
|
|
168
|
-
let innerStep = step;
|
|
169
|
-
while (innerStep.metaStep) {
|
|
170
|
-
parents.unshift(innerStep.metaStep);
|
|
171
|
-
innerStep = innerStep.metaStep;
|
|
172
|
-
}
|
|
173
|
-
return parents;
|
|
174
|
-
}
|
|
175
|
-
stepStarted(step) {
|
|
176
|
-
this.validateStep(step);
|
|
177
|
-
const parents = [...this.getStepParents(step), step];
|
|
178
|
-
const allureTest = this.currentAllureTest;
|
|
179
|
-
if (!allureTest) {
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
const steps = this.allureStepCache.get(allureTest);
|
|
183
|
-
let lastParent = (parents.length > 0 && (steps === null || steps === void 0 ? void 0 : steps.get(parents[0]))) || undefined;
|
|
184
|
-
parents.forEach((parentStep) => {
|
|
185
|
-
const allureStep = !lastParent
|
|
186
|
-
? allureTest.startStep(parentStep.toString())
|
|
187
|
-
: (steps === null || steps === void 0 ? void 0 : steps.get(parentStep)) || lastParent.startStep(parentStep.toString());
|
|
188
|
-
steps === null || steps === void 0 ? void 0 : steps.set(parentStep, allureStep);
|
|
189
|
-
lastParent = allureStep;
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
validateStep(step) {
|
|
193
|
-
const lastParent = [...this.getStepParents(step), step][0];
|
|
194
|
-
if (lastParent !== this.lastStepParent) {
|
|
195
|
-
this.allureStepCache.set(this.currentAllureTest, new Map());
|
|
196
|
-
}
|
|
197
|
-
this.lastStepParent = lastParent;
|
|
198
|
-
}
|
|
199
|
-
stepFailed(step) {
|
|
200
|
-
const allureStep = this.allureStepByCodeceptStep(step, this.currentAllureTest);
|
|
201
|
-
if (allureStep) {
|
|
202
|
-
allureStep.status = allure_js_commons_1.Status.FAILED;
|
|
203
|
-
allureStep.endStep();
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
stepComment(step) {
|
|
207
|
-
var _a;
|
|
208
|
-
const allureStep = (_a = this.currentAllureTest) === null || _a === void 0 ? void 0 : _a.startStep(step.toString());
|
|
209
|
-
if (allureStep) {
|
|
210
|
-
allureStep.status = allure_js_commons_1.Status.PASSED;
|
|
211
|
-
allureStep.endStep();
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
stepPassed(step) {
|
|
215
|
-
const allureStep = this.allureStepByCodeceptStep(step, this.currentAllureTest);
|
|
216
|
-
if (allureStep) {
|
|
217
|
-
allureStep.status = allure_js_commons_1.Status.PASSED;
|
|
218
|
-
allureStep.endStep();
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
stepFinished(step) {
|
|
222
|
-
const parentStep = this.getStepParents(step)[0] || step;
|
|
223
|
-
const allureStep = this.allureStepByCodeceptStep(parentStep, this.currentAllureTest);
|
|
224
|
-
if (allureStep) {
|
|
225
|
-
allureStep.status = allureStep.isAnyStepFailed ? allure_js_commons_1.Status.FAILED : allure_js_commons_1.Status.PASSED;
|
|
226
|
-
allureStep.endStep();
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
ensureAllureGroupCreated(suite) {
|
|
230
|
-
let group = this.allureGroupCache.get(suite);
|
|
231
|
-
if (!group) {
|
|
232
|
-
const parent = suite.parent ? this.ensureAllureGroupCreated(suite.parent) : this.getAllureRuntime();
|
|
233
|
-
group = parent.startGroup(suite.fullTitle());
|
|
234
|
-
this.allureGroupCache.set(suite, group);
|
|
235
|
-
}
|
|
236
|
-
return group;
|
|
237
|
-
}
|
|
238
|
-
getAllureRuntime() {
|
|
239
|
-
if (!this.allureRuntime) {
|
|
240
|
-
throw new Error("Unexpected state: `allureRuntime` is not initialized");
|
|
241
|
-
}
|
|
242
|
-
return this.allureRuntime;
|
|
243
|
-
}
|
|
244
|
-
debug(msg) {
|
|
245
|
-
const error = new Error(msg || "Something went wrong");
|
|
246
|
-
codeceptjs.output.log(`${error.message} ${error.stack || ""}`);
|
|
247
|
-
}
|
|
248
|
-
get currentAllureTest() {
|
|
249
|
-
if (!this.currentTest) {
|
|
250
|
-
this.debug();
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
253
|
-
return this.allureTestByCodeceptTest(this.currentTest);
|
|
254
|
-
}
|
|
255
|
-
addLabel(name, value) {
|
|
256
|
-
this.label(name, value);
|
|
257
|
-
}
|
|
258
|
-
label(name, value) {
|
|
259
|
-
var _a;
|
|
260
|
-
(_a = this.currentAllureTest) === null || _a === void 0 ? void 0 : _a.addLabel(name, value);
|
|
261
|
-
}
|
|
262
|
-
addAttachment(name, buffer, type) {
|
|
263
|
-
var _a;
|
|
264
|
-
const runtime = this.getAllureRuntime();
|
|
265
|
-
const fileName = runtime.writeAttachment(buffer, { contentType: type });
|
|
266
|
-
(_a = this.currentAllureTest) === null || _a === void 0 ? void 0 : _a.addAttachment(name, type, fileName);
|
|
267
|
-
}
|
|
268
|
-
addScreenDiff(name, expectedImg, actualImg, diffImg) {
|
|
269
|
-
const screenDiff = {
|
|
270
|
-
name,
|
|
271
|
-
expected: `data:image/png;base64,${expectedImg}`,
|
|
272
|
-
actual: `data:image/png;base64,${actualImg}`,
|
|
273
|
-
diff: `data:image/png;base64,${diffImg}`,
|
|
274
|
-
};
|
|
275
|
-
this.addAttachment(name, JSON.stringify(screenDiff), "application/vnd.allure.image.diff");
|
|
276
|
-
}
|
|
277
|
-
parameter(name, value, options) {
|
|
278
|
-
if (this.currentAllureTest) {
|
|
279
|
-
this.currentAllureTest.parameter(name, value, options);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
tms(name, url) {
|
|
283
|
-
this.link(url, name, allure_js_commons_1.LinkType.TMS);
|
|
284
|
-
}
|
|
285
|
-
link(url, name, type) {
|
|
286
|
-
if (this.currentAllureTest) {
|
|
287
|
-
this.currentAllureTest.addLink(url, name, type);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
labels(...values) {
|
|
291
|
-
values.forEach(({ name, value }) => this.label(name, value));
|
|
292
|
-
}
|
|
293
|
-
links(...values) {
|
|
294
|
-
values.forEach(({ url, name, type }) => this.link(url, name, type));
|
|
295
|
-
}
|
|
296
|
-
id(id) {
|
|
297
|
-
this.label(allure_js_commons_1.LabelName.ALLURE_ID, id);
|
|
298
|
-
}
|
|
299
|
-
suite(name) {
|
|
300
|
-
this.label(allure_js_commons_1.LabelName.SUITE, name);
|
|
301
|
-
}
|
|
302
|
-
parentSuite(name) {
|
|
303
|
-
this.label(allure_js_commons_1.LabelName.PARENT_SUITE, name);
|
|
304
|
-
}
|
|
305
|
-
layer(layerName) {
|
|
306
|
-
this.label(allure_js_commons_1.LabelName.LAYER, layerName);
|
|
307
|
-
}
|
|
308
|
-
subSuite(name) {
|
|
309
|
-
this.label(allure_js_commons_1.LabelName.SUB_SUITE, name);
|
|
310
|
-
}
|
|
311
|
-
owner(owner) {
|
|
312
|
-
this.label(allure_js_commons_1.LabelName.OWNER, owner);
|
|
313
|
-
}
|
|
314
|
-
tag(tag) {
|
|
315
|
-
this.label(allure_js_commons_1.LabelName.TAG, tag);
|
|
316
|
-
}
|
|
317
|
-
tags(...values) {
|
|
318
|
-
values.forEach((value) => this.tag(value));
|
|
319
|
-
}
|
|
320
|
-
issue(name, url) {
|
|
321
|
-
this.link(url, name, allure_js_commons_1.LinkType.ISSUE);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
const allurePlugin = (config) => {
|
|
325
|
-
return new AllureReporter(config);
|
|
326
|
-
};
|
|
327
|
-
module.exports = allurePlugin;
|
|
328
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,2CAAmC;AACnC,gDAAwB;AACxB,sDAA8B;AAC9B,yDAgB2B;AAE3B,uCAAwC;AAKxC,MAAM,cAAc;IAUlB,YAAY,MAAuB;QARnC,qBAAgB,GAAG,IAAI,GAAG,EAA8B,CAAC;QACzD,oBAAe,GAAG,IAAI,GAAG,EAA4B,CAAC;QACtD,iBAAY,GAAG,iBAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC,CAAC,IAAI,uCAAmB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;QAElG,oBAAe,GAAG,IAAI,GAAG,EAA6C,CAAC;QAEvE,gBAAW,GAAwB,IAAI,CAAC;QA8TxC,aAAQ,GAAG,CAAC,QAAgB,EAAE,EAAE;YAC9B,IAAI,CAAC,QAAQ,CAAC,6BAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC9C,CAAC,CAAC;QAEF,SAAI,GAAG,CAAC,IAAY,EAAE,EAAE;YACtB,IAAI,CAAC,QAAQ,CAAC,6BAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtC,CAAC,CAAC;QAEF,YAAO,GAAG,CAAC,OAAe,EAAE,EAAE;YAC5B,IAAI,CAAC,QAAQ,CAAC,6BAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAC5C,CAAC,CAAC;QAEF,UA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