allure-jest 2.6.0
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 +45 -0
- package/dist/AllureJest.d.ts +24 -0
- package/dist/AllureJest.js +137 -0
- package/dist/AllureJest.js.map +1 -0
- package/dist/AllureJestApi.d.ts +33 -0
- package/dist/AllureJestApi.js +136 -0
- package/dist/AllureJestApi.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/utils.d.ts +4 -0
- package/dist/utils.js +20 -0
- package/dist/utils.js.map +1 -0
- package/package.json +92 -0
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# allure-jest
|
|
2
|
+
|
|
3
|
+
> **Warning**
|
|
4
|
+
> If you are using `jest@<27.0.0` use [`allure-jasmine` package][allure-jasmine]
|
|
5
|
+
> or consider to use `jest-circus` as a test runner with this package.
|
|
6
|
+
>
|
|
7
|
+
> The integration doesn't work with custom runners. If you want to use the
|
|
8
|
+
> integration use `jest-circus` as a test runner.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
Use your favorite node package manager to install required packages:
|
|
13
|
+
|
|
14
|
+
```shell
|
|
15
|
+
npm add -D allure-jest allure-js-commons
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Then, add following line to your `jest.config.js` file:
|
|
19
|
+
|
|
20
|
+
```diff
|
|
21
|
+
/** @type {import('jest').Config} */
|
|
22
|
+
const config = {
|
|
23
|
+
+ testEnvironment: "allure-jest",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = config
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Use Allure runtime Api
|
|
30
|
+
|
|
31
|
+
The plugin provides custom global commands which allow to add additional info
|
|
32
|
+
inside your tests:
|
|
33
|
+
|
|
34
|
+
```javascript
|
|
35
|
+
it("my test", () => {
|
|
36
|
+
allure.attachment(currentTest.id(), screenshot, "image/png");
|
|
37
|
+
allure.epic(currentTest.id(), "my_epic");
|
|
38
|
+
allure.parameter(currentTest.id(), "parameter_name", "parameter_value", {
|
|
39
|
+
mode: "hidden",
|
|
40
|
+
excluded: false,
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
[allure-jasmine]: https://github.com/allure-framework/allure-js/tree/master/packages/allure-jasmine
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EnvironmentContext, JestEnvironmentConfig } from "@jest/environment";
|
|
2
|
+
import type { Circus } from "@jest/types";
|
|
3
|
+
import { AllureRuntime, AllureTest, MetadataMessage } from "allure-js-commons";
|
|
4
|
+
import NodeEnvironment from "jest-environment-node";
|
|
5
|
+
export default class AllureJest extends NodeEnvironment {
|
|
6
|
+
testRootDirPath: string;
|
|
7
|
+
runtime: AllureRuntime;
|
|
8
|
+
runningTests: Map<string, AllureTest>;
|
|
9
|
+
constructor(config: JestEnvironmentConfig, context: EnvironmentContext);
|
|
10
|
+
setup(): Promise<void>;
|
|
11
|
+
teardown(): Promise<void>;
|
|
12
|
+
handleAllureMetadata(payload: {
|
|
13
|
+
currentTestName: string;
|
|
14
|
+
metadata: MetadataMessage;
|
|
15
|
+
}): void;
|
|
16
|
+
handleTestEvent(event: Circus.Event, state: Circus.State): void;
|
|
17
|
+
private handleTestAdd;
|
|
18
|
+
private handleTestStart;
|
|
19
|
+
private handleTestPass;
|
|
20
|
+
private handleTestFail;
|
|
21
|
+
private handleTestSkip;
|
|
22
|
+
private handleTestDone;
|
|
23
|
+
private handleTestTodo;
|
|
24
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const os_1 = __importDefault(require("os"));
|
|
7
|
+
const process_1 = __importDefault(require("process"));
|
|
8
|
+
const allure_js_commons_1 = require("allure-js-commons");
|
|
9
|
+
const jest_environment_node_1 = __importDefault(require("jest-environment-node"));
|
|
10
|
+
const AllureJestApi_1 = require("./AllureJestApi");
|
|
11
|
+
const utils_1 = require("./utils");
|
|
12
|
+
const { ALLURE_HOST_NAME, ALLURE_THREAD_NAME, JEST_WORKER_ID } = process_1.default.env;
|
|
13
|
+
const hostname = os_1.default.hostname();
|
|
14
|
+
class AllureJest extends jest_environment_node_1.default {
|
|
15
|
+
constructor(config, context) {
|
|
16
|
+
super(config, context);
|
|
17
|
+
this.runningTests = new Map();
|
|
18
|
+
this.runtime = new allure_js_commons_1.AllureRuntime({
|
|
19
|
+
resultsDir: "allure-results",
|
|
20
|
+
});
|
|
21
|
+
this.global.allure = new AllureJestApi_1.AllureJestApi(this, this.global);
|
|
22
|
+
this.testRootDirPath = config.projectConfig.rootDir;
|
|
23
|
+
this.global.hello = "world";
|
|
24
|
+
}
|
|
25
|
+
setup() {
|
|
26
|
+
return super.setup();
|
|
27
|
+
}
|
|
28
|
+
teardown() {
|
|
29
|
+
return super.teardown();
|
|
30
|
+
}
|
|
31
|
+
handleAllureMetadata(payload) {
|
|
32
|
+
const currentTest = this.runningTests.get(payload.currentTestName);
|
|
33
|
+
currentTest.applyMetadata(payload.metadata);
|
|
34
|
+
}
|
|
35
|
+
handleTestEvent(event, state) {
|
|
36
|
+
switch (event.name) {
|
|
37
|
+
case "add_test":
|
|
38
|
+
this.handleTestAdd({
|
|
39
|
+
testName: event.testName,
|
|
40
|
+
concurrent: event.concurrent,
|
|
41
|
+
state,
|
|
42
|
+
});
|
|
43
|
+
break;
|
|
44
|
+
case "test_start":
|
|
45
|
+
this.handleTestStart(event.test);
|
|
46
|
+
break;
|
|
47
|
+
case "test_todo":
|
|
48
|
+
this.handleTestTodo(event.test);
|
|
49
|
+
break;
|
|
50
|
+
case "test_fn_success":
|
|
51
|
+
this.handleTestPass(event.test);
|
|
52
|
+
break;
|
|
53
|
+
case "test_fn_failure":
|
|
54
|
+
this.handleTestFail(event.test);
|
|
55
|
+
break;
|
|
56
|
+
case "test_skip":
|
|
57
|
+
this.handleTestSkip(event.test);
|
|
58
|
+
break;
|
|
59
|
+
case "test_done":
|
|
60
|
+
this.handleTestDone(event.test);
|
|
61
|
+
break;
|
|
62
|
+
default:
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
handleTestAdd(payload) {
|
|
67
|
+
const { testName, state } = payload;
|
|
68
|
+
const { currentDescribeBlock } = state;
|
|
69
|
+
const newTestSuitesPath = (0, utils_1.getTestPath)(currentDescribeBlock);
|
|
70
|
+
const newTestPath = newTestSuitesPath.concat(testName);
|
|
71
|
+
const newTestID = (0, utils_1.getTestId)(newTestPath);
|
|
72
|
+
const newTest = new allure_js_commons_1.AllureTest(this.runtime);
|
|
73
|
+
const thread = ALLURE_THREAD_NAME || JEST_WORKER_ID || process_1.default.pid.toString();
|
|
74
|
+
const host = ALLURE_HOST_NAME || hostname;
|
|
75
|
+
newTest.name = testName;
|
|
76
|
+
newTest.fullName = newTestID;
|
|
77
|
+
newTest.addLabel(allure_js_commons_1.LabelName.LANGUAGE, "javascript");
|
|
78
|
+
newTest.addLabel(allure_js_commons_1.LabelName.FRAMEWORK, "jest");
|
|
79
|
+
if (thread) {
|
|
80
|
+
newTest.addLabel(allure_js_commons_1.LabelName.THREAD, thread);
|
|
81
|
+
}
|
|
82
|
+
if (host) {
|
|
83
|
+
newTest.addLabel(allure_js_commons_1.LabelName.HOST, host);
|
|
84
|
+
}
|
|
85
|
+
(0, allure_js_commons_1.getSuitesLabels)(newTestSuitesPath).forEach((label) => {
|
|
86
|
+
newTest.addLabel(label.name, label.value);
|
|
87
|
+
});
|
|
88
|
+
this.runningTests.set(newTestID, newTest);
|
|
89
|
+
}
|
|
90
|
+
handleTestStart(test) {
|
|
91
|
+
const currentTestID = (0, utils_1.getTestId)((0, utils_1.getTestPath)(test));
|
|
92
|
+
const currentTest = this.runningTests.get(currentTestID);
|
|
93
|
+
currentTest.stage = allure_js_commons_1.Stage.RUNNING;
|
|
94
|
+
}
|
|
95
|
+
handleTestPass(test) {
|
|
96
|
+
const currentTestID = (0, utils_1.getTestId)((0, utils_1.getTestPath)(test));
|
|
97
|
+
const currentTest = this.runningTests.get(currentTestID);
|
|
98
|
+
currentTest.stage = allure_js_commons_1.Stage.FINISHED;
|
|
99
|
+
currentTest.status = allure_js_commons_1.Status.PASSED;
|
|
100
|
+
}
|
|
101
|
+
handleTestFail(test) {
|
|
102
|
+
const currentTestID = (0, utils_1.getTestId)((0, utils_1.getTestPath)(test));
|
|
103
|
+
const currentTest = this.runningTests.get(currentTestID);
|
|
104
|
+
const [error] = test.errors;
|
|
105
|
+
const hasMultipleErrors = Array.isArray(error);
|
|
106
|
+
currentTest.stage = allure_js_commons_1.Stage.FINISHED;
|
|
107
|
+
currentTest.status = allure_js_commons_1.Status.FAILED;
|
|
108
|
+
currentTest.statusDetails = {
|
|
109
|
+
message: hasMultipleErrors ? error[0].message : error.message,
|
|
110
|
+
trace: hasMultipleErrors ? error[0].stack : error.stack,
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
handleTestSkip(test) {
|
|
114
|
+
const currentTestID = (0, utils_1.getTestId)((0, utils_1.getTestPath)(test));
|
|
115
|
+
const currentTest = this.runningTests.get(currentTestID);
|
|
116
|
+
currentTest.stage = allure_js_commons_1.Stage.PENDING;
|
|
117
|
+
currentTest.status = allure_js_commons_1.Status.SKIPPED;
|
|
118
|
+
currentTest.endTest();
|
|
119
|
+
this.runningTests.delete(currentTestID);
|
|
120
|
+
}
|
|
121
|
+
handleTestDone(test) {
|
|
122
|
+
const currentTestID = (0, utils_1.getTestId)((0, utils_1.getTestPath)(test));
|
|
123
|
+
const currentTest = this.runningTests.get(currentTestID);
|
|
124
|
+
currentTest.endTest();
|
|
125
|
+
this.runningTests.delete(currentTestID);
|
|
126
|
+
}
|
|
127
|
+
handleTestTodo(test) {
|
|
128
|
+
const currentTestID = (0, utils_1.getTestId)((0, utils_1.getTestPath)(test));
|
|
129
|
+
const currentTest = this.runningTests.get(currentTestID);
|
|
130
|
+
currentTest.stage = allure_js_commons_1.Stage.PENDING;
|
|
131
|
+
currentTest.status = allure_js_commons_1.Status.SKIPPED;
|
|
132
|
+
currentTest.endTest();
|
|
133
|
+
this.runningTests.delete(currentTestID);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
exports.default = AllureJest;
|
|
137
|
+
//# sourceMappingURL=AllureJest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AllureJest.js","sourceRoot":"","sources":["../src/AllureJest.ts"],"names":[],"mappings":";;;;;AAAA,4CAAoB;AACpB,sDAA8B;AAG9B,yDAQ2B;AAC3B,kFAAoD;AACpD,mDAAgD;AAChD,mCAAiD;AAEjD,MAAM,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,iBAAO,CAAC,GAAG,CAAC;AAC7E,MAAM,QAAQ,GAAG,YAAE,CAAC,QAAQ,EAAE,CAAC;AAE/B,MAAqB,UAAW,SAAQ,+BAAe;IAKrD,YAAY,MAA6B,EAAE,OAA2B;QACpE,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAHzB,iBAAY,GAA4B,IAAI,GAAG,EAAE,CAAC;QAKhD,IAAI,CAAC,OAAO,GAAG,IAAI,iCAAa,CAAC;YAE/B,UAAU,EAAE,gBAAgB;SAC7B,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,IAAI,6BAAa,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1D,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC;QACpD,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,OAAO,CAAC;IAC9B,CAAC;IAED,KAAK;QACH,OAAO,K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import type { Global } from "@jest/types";
|
|
3
|
+
import { AllureRuntimeApiInterface, MetadataMessage, ParameterOptions, StepBodyFunction } from "allure-js-commons";
|
|
4
|
+
import AllureJest from "./AllureJest";
|
|
5
|
+
export declare class AllureJestApi implements AllureRuntimeApiInterface {
|
|
6
|
+
env: AllureJest;
|
|
7
|
+
context: Global.Global;
|
|
8
|
+
constructor(env: AllureJest, context: Global.Global);
|
|
9
|
+
sendMetadata(metadata: MetadataMessage): Promise<unknown>;
|
|
10
|
+
label(name: string, value: string): void;
|
|
11
|
+
parameter(name: string, value: any, options?: ParameterOptions): void;
|
|
12
|
+
attachment(content: string | Buffer, type: string): void;
|
|
13
|
+
link(url: string, name?: string, type?: string): void;
|
|
14
|
+
step(name: string, body: StepBodyFunction): Promise<void>;
|
|
15
|
+
displayName(name: string): Promise<void>;
|
|
16
|
+
epic(epic: string): void;
|
|
17
|
+
feature(feature: string): void;
|
|
18
|
+
story(story: string): void;
|
|
19
|
+
suite(name: string): void;
|
|
20
|
+
parentSuite(name: string): void;
|
|
21
|
+
subSuite(name: string): void;
|
|
22
|
+
owner(owner: string): void;
|
|
23
|
+
severity(severity: string): void;
|
|
24
|
+
layer(layer: string): void;
|
|
25
|
+
id(allureId: string): void;
|
|
26
|
+
tag(tag: string): void;
|
|
27
|
+
issue(name: string, url: string): void;
|
|
28
|
+
tms(name: string, url: string): void;
|
|
29
|
+
description(markdown: string): void;
|
|
30
|
+
descriptionHtml(html: string): void;
|
|
31
|
+
testCaseId(testCaseId: string): void;
|
|
32
|
+
historyId(historyId: string): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AllureJestApi = void 0;
|
|
4
|
+
const allure_js_commons_1 = require("allure-js-commons");
|
|
5
|
+
class AllureJestApi {
|
|
6
|
+
constructor(env, context) {
|
|
7
|
+
this.env = env;
|
|
8
|
+
this.context = context;
|
|
9
|
+
}
|
|
10
|
+
async sendMetadata(metadata) {
|
|
11
|
+
var _a;
|
|
12
|
+
const { currentTestName, currentConcurrentTestName } = this.context.expect.getState();
|
|
13
|
+
const testName = currentTestName || ((_a = currentConcurrentTestName === null || currentConcurrentTestName === void 0 ? void 0 : currentConcurrentTestName.getStore) === null || _a === void 0 ? void 0 : _a.call(currentConcurrentTestName));
|
|
14
|
+
return new Promise((resolve) => {
|
|
15
|
+
this.env.handleAllureMetadata({
|
|
16
|
+
currentTestName: testName,
|
|
17
|
+
metadata,
|
|
18
|
+
});
|
|
19
|
+
return resolve(void 0);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
label(name, value) {
|
|
23
|
+
this.sendMetadata({
|
|
24
|
+
labels: [
|
|
25
|
+
{
|
|
26
|
+
name,
|
|
27
|
+
value,
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
parameter(name, value, options) {
|
|
33
|
+
this.sendMetadata({
|
|
34
|
+
parameter: [
|
|
35
|
+
Object.assign({ name,
|
|
36
|
+
value }, options),
|
|
37
|
+
],
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
attachment(content, type) {
|
|
41
|
+
const isBuffer = Buffer.isBuffer(content);
|
|
42
|
+
this.sendMetadata({
|
|
43
|
+
attachments: [
|
|
44
|
+
{
|
|
45
|
+
name: "Attachment",
|
|
46
|
+
content: isBuffer ? content.toString("base64") : content,
|
|
47
|
+
encoding: isBuffer ? "base64" : "utf8",
|
|
48
|
+
type,
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
link(url, name, type) {
|
|
54
|
+
this.sendMetadata({
|
|
55
|
+
links: [
|
|
56
|
+
{
|
|
57
|
+
name,
|
|
58
|
+
type,
|
|
59
|
+
url,
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
async step(name, body) {
|
|
65
|
+
const step = new allure_js_commons_1.AllureCommandStepExecutable(name);
|
|
66
|
+
await step.run(body, async (message) => {
|
|
67
|
+
await this.sendMetadata(message);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
async displayName(name) {
|
|
71
|
+
await this.sendMetadata({
|
|
72
|
+
displayName: name,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
epic(epic) {
|
|
76
|
+
this.label(allure_js_commons_1.LabelName.EPIC, epic);
|
|
77
|
+
}
|
|
78
|
+
feature(feature) {
|
|
79
|
+
this.label(allure_js_commons_1.LabelName.FEATURE, feature);
|
|
80
|
+
}
|
|
81
|
+
story(story) {
|
|
82
|
+
this.label(allure_js_commons_1.LabelName.STORY, story);
|
|
83
|
+
}
|
|
84
|
+
suite(name) {
|
|
85
|
+
this.label(allure_js_commons_1.LabelName.SUITE, name);
|
|
86
|
+
}
|
|
87
|
+
parentSuite(name) {
|
|
88
|
+
this.label(allure_js_commons_1.LabelName.PARENT_SUITE, name);
|
|
89
|
+
}
|
|
90
|
+
subSuite(name) {
|
|
91
|
+
this.label(allure_js_commons_1.LabelName.SUB_SUITE, name);
|
|
92
|
+
}
|
|
93
|
+
owner(owner) {
|
|
94
|
+
this.label(allure_js_commons_1.LabelName.OWNER, owner);
|
|
95
|
+
}
|
|
96
|
+
severity(severity) {
|
|
97
|
+
this.label(allure_js_commons_1.LabelName.SEVERITY, severity);
|
|
98
|
+
}
|
|
99
|
+
layer(layer) {
|
|
100
|
+
this.label(allure_js_commons_1.LabelName.LAYER, layer);
|
|
101
|
+
}
|
|
102
|
+
id(allureId) {
|
|
103
|
+
this.label(allure_js_commons_1.LabelName.ALLURE_ID, allureId);
|
|
104
|
+
}
|
|
105
|
+
tag(tag) {
|
|
106
|
+
this.label(allure_js_commons_1.LabelName.TAG, tag);
|
|
107
|
+
}
|
|
108
|
+
issue(name, url) {
|
|
109
|
+
this.link(url, name, allure_js_commons_1.LinkType.ISSUE);
|
|
110
|
+
}
|
|
111
|
+
tms(name, url) {
|
|
112
|
+
this.link(url, name, allure_js_commons_1.LinkType.TMS);
|
|
113
|
+
}
|
|
114
|
+
description(markdown) {
|
|
115
|
+
this.sendMetadata({
|
|
116
|
+
description: markdown,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
descriptionHtml(html) {
|
|
120
|
+
this.sendMetadata({
|
|
121
|
+
descriptionHtml: html,
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
testCaseId(testCaseId) {
|
|
125
|
+
this.sendMetadata({
|
|
126
|
+
testCaseId,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
historyId(historyId) {
|
|
130
|
+
this.sendMetadata({
|
|
131
|
+
historyId,
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.AllureJestApi = AllureJestApi;
|
|
136
|
+
//# sourceMappingURL=AllureJestApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AllureJestApi.js","sourceRoot":"","sources":["../src/AllureJestApi.ts"],"names":[],"mappings":";;;AAEA,yDAQ2B;AAG3B,MAAa,aAAa;IAIxB,YAAY,GAAe,EAAE,OAAsB;QACjD,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,QAAyB;;QAC1C,MAAM,EAAE,eAAe,EAAE,yBAAyB,EAAE,GAClD,IAAI,CAAC,OAAO,CAAC,MACd,CAAC,QAAQ,EAAE,CAAC;QACb,MAAM,QAAQ,GAAG,eAAe,KAAI,MAAA,yBAAyB,aAAzB,yBAAyB,uBAAzB,yBAAyB,CAAE,QAAQ,yEAAI,CAAA,CAAC;QAE5E,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7B,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAC;gBAC5B,eAAe,EAAE,QAAkB;gBACnC,QAA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CAAC,6BAAS,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAED,GAAG,CAAC,GAAW;QACb,IAAI,CAAC,KAAK,CAAC,6BAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,IAAY,EAAE,GAAW;QAC7B,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,4BAAQ,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAED,GAAG,CAAC,IAAY,EAAE,GAAW;QAC3B,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAE,4BAAQ,CAAC,GAAG,CAAC,CAAC;IACrC,CAAC;IAED,WAAW,CAAC,QAAgB;QAC1B,IAAI,CAAC,YAAY,CAAC;YAChB,WAAW,EAAE,QAAQ;SACtB,CAAC,CAAC;IACL,CAAC;IAED,eAAe,CAAC,IAAY;QAC1B,IAAI,CAAC,YAAY,CAAC;YAChB,eAAe,EAAE,IAAI;SACtB,CAAC,CAAC;IACL,CAAC;IAED,UAAU,CAAC,UAAkB;QAC3B,IAAI,CAAC,YAAY,CAAC;YAChB,UAAU;SACX,CAAC,CAAC;IACL,CAAC;IAED,SAAS,CAAC,SAAiB;QACzB,IAAI,CAAC,YAAY,CAAC;YAChB,SAAS;SACV,CAAC,CAAC;IACL,CAAC;CACF;AApKD,sCAoKC"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var AllureJest_1 = require("./AllureJest");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(AllureJest_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAEA,2CAAuC;AAA9B,sHAAA,OAAO,OAAA"}
|
package/dist/utils.d.ts
ADDED
package/dist/utils.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTestFullName = exports.getTestId = exports.getTestPath = void 0;
|
|
4
|
+
const getTestPath = (test) => {
|
|
5
|
+
const path = [];
|
|
6
|
+
let currentUnit = test;
|
|
7
|
+
while (currentUnit) {
|
|
8
|
+
if (currentUnit.name) {
|
|
9
|
+
path.unshift(currentUnit.name);
|
|
10
|
+
}
|
|
11
|
+
currentUnit = currentUnit.parent;
|
|
12
|
+
}
|
|
13
|
+
return path.slice(1);
|
|
14
|
+
};
|
|
15
|
+
exports.getTestPath = getTestPath;
|
|
16
|
+
const getTestId = (path) => path.join(" ");
|
|
17
|
+
exports.getTestId = getTestId;
|
|
18
|
+
const getTestFullName = (path) => path.join(" > ");
|
|
19
|
+
exports.getTestFullName = getTestFullName;
|
|
20
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AASO,MAAM,WAAW,GAAG,CAAC,IAA6C,EAAY,EAAE;IACrF,MAAM,IAAI,GAAG,EAAE,CAAC;IAChB,IAAI,WAAW,GAAwD,IAAI,CAAC;IAE5E,OAAO,WAAW,EAAE;QAClB,IAAI,WAAW,CAAC,IAAI,EAAE;YACpB,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;SAChC;QAED,WAAW,GAAG,WAAW,CAAC,MAAM,CAAC;KAClC;IAGD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACvB,CAAC,CAAC;AAdW,QAAA,WAAW,eActB;AASK,MAAM,SAAS,GAAG,CAAC,IAAc,EAAU,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAAvD,QAAA,SAAS,aAA8C;AAQ7D,MAAM,eAAe,GAAG,CAAC,IAAc,EAAU,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAA/D,QAAA,eAAe,mBAAgD"}
|
package/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "allure-jest",
|
|
3
|
+
"version": "2.6.0",
|
|
4
|
+
"description": "Allure Jest integration",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"packageManager": "yarn@3.4.1",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Qameta Software",
|
|
9
|
+
"email": "allure@qameta.io",
|
|
10
|
+
"url": "https://qameta.io/"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"jest",
|
|
14
|
+
"circus",
|
|
15
|
+
"typescript",
|
|
16
|
+
"allure"
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/allure-framework/allure-js.git",
|
|
21
|
+
"directory": "packages/allure-jest"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"clean": "rimraf ./dist ./out",
|
|
30
|
+
"compile": "tsc",
|
|
31
|
+
"test": "nyc tsx --tsconfig ./tsconfig.json ./test/runner.ts",
|
|
32
|
+
"coverage": "codecov",
|
|
33
|
+
"lint": "eslint ./src --ext .ts",
|
|
34
|
+
"lint:fix": "eslint ./src --ext .ts --fix"
|
|
35
|
+
},
|
|
36
|
+
"nyc": {
|
|
37
|
+
"check-coverage": false,
|
|
38
|
+
"lines": 80,
|
|
39
|
+
"statements": 80,
|
|
40
|
+
"functions": 75,
|
|
41
|
+
"branches": 70,
|
|
42
|
+
"extension": [
|
|
43
|
+
".ts"
|
|
44
|
+
],
|
|
45
|
+
"exclude": [
|
|
46
|
+
"test/**/*.*",
|
|
47
|
+
"**/*.d.ts"
|
|
48
|
+
],
|
|
49
|
+
"reporter": [
|
|
50
|
+
"lcov",
|
|
51
|
+
"text"
|
|
52
|
+
],
|
|
53
|
+
"all": true,
|
|
54
|
+
"report-dir": "./out/coverage",
|
|
55
|
+
"temp-dir": "./out/.nyc"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@jest/core": "^29.6.2",
|
|
59
|
+
"@jest/environment": "^29.6.2",
|
|
60
|
+
"@jest/types": "^29.6.1",
|
|
61
|
+
"@types/chai": "^4.3.5",
|
|
62
|
+
"@types/chai-like": "^1.1.1",
|
|
63
|
+
"@types/chai-things": "^0.0.35",
|
|
64
|
+
"@types/glob": "^8.1.0",
|
|
65
|
+
"@types/jasmine": "^3.3.12",
|
|
66
|
+
"@types/jest": "^29.5.3",
|
|
67
|
+
"@types/mocha": "^10.0.1",
|
|
68
|
+
"@types/node": "^16.7.8",
|
|
69
|
+
"@types/sinon": "^10.0.16",
|
|
70
|
+
"@types/source-map-support": "^0",
|
|
71
|
+
"chai": "^4.3.7",
|
|
72
|
+
"chai-like": "^1.1.1",
|
|
73
|
+
"chai-things": "^0.2.0",
|
|
74
|
+
"codecov": "^3.8.3",
|
|
75
|
+
"glob": "^7.1.7",
|
|
76
|
+
"jest-cli": "^29.6.2",
|
|
77
|
+
"mocha": "^10.2.0",
|
|
78
|
+
"mocha-multi-reporters": "^1.5.1",
|
|
79
|
+
"nyc": "^15.1.0",
|
|
80
|
+
"rimraf": "^3.0.2",
|
|
81
|
+
"sinon": "^15.2.0",
|
|
82
|
+
"source-map-support": "^0.5.21",
|
|
83
|
+
"tsx": "^3.12.7",
|
|
84
|
+
"typescript": "^5.1.3"
|
|
85
|
+
},
|
|
86
|
+
"dependencies": {
|
|
87
|
+
"@jest/expect": "^29.6.2",
|
|
88
|
+
"allure-js-commons": "2.6.0",
|
|
89
|
+
"jest-circus": "^29.6.2",
|
|
90
|
+
"jest-environment-node": "^29.6.2"
|
|
91
|
+
}
|
|
92
|
+
}
|