allure-mocha 2.0.0-beta.16 → 2.0.0-beta.19
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 +11 -9
- package/dist/AllureReporter.d.ts +2 -0
- package/dist/AllureReporter.js +23 -1
- package/dist/AllureReporter.js.map +1 -1
- package/dist/MochaAllureReporter.d.ts +6 -2
- package/dist/MochaAllureReporter.js +15 -11
- package/dist/MochaAllureReporter.js.map +1 -1
- package/package.json +2 -2
- package/runtime.d.ts +1 -1
- package/runtime.js +4 -4
package/README.md
CHANGED
|
@@ -7,16 +7,18 @@ This project implements Allure integration with Mocha framework.
|
|
|
7
7
|
```bash
|
|
8
8
|
npm i allure-mocha mocha --save-dev
|
|
9
9
|
```
|
|
10
|
+
|
|
10
11
|
or via yarn:
|
|
12
|
+
|
|
11
13
|
```bash
|
|
12
14
|
yarn add allure-mocha mocha --dev
|
|
13
15
|
```
|
|
14
16
|
|
|
15
17
|
Note that it's recommended to add the following dependencies as well for better user experience:
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
- typescript
|
|
20
|
+
- mocha-typescript
|
|
21
|
+
- source-map-support
|
|
20
22
|
|
|
21
23
|
## Usage
|
|
22
24
|
|
|
@@ -32,19 +34,19 @@ Or pass the same value via commandline / scripts:
|
|
|
32
34
|
mocha -R allure-mocha
|
|
33
35
|
```
|
|
34
36
|
|
|
35
|
-
If you want to provide extra information, such as steps and attachments, import the `allure` object
|
|
37
|
+
If you want to provide extra information, such as steps and attachments, import the `allure` object
|
|
36
38
|
into your code:
|
|
37
39
|
|
|
38
40
|
```javascript
|
|
39
41
|
// es-modules
|
|
40
|
-
import { allure } from
|
|
42
|
+
import { allure } from "allure-mocha/runtime";
|
|
41
43
|
// or commonjs
|
|
42
|
-
const { allure } = require(
|
|
44
|
+
const { allure } = require("allure-mocha/runtime");
|
|
43
45
|
|
|
44
|
-
it(
|
|
45
|
-
allure.epic(
|
|
46
|
+
it("is a test", () => {
|
|
47
|
+
allure.epic("Some info");
|
|
46
48
|
});
|
|
47
|
-
```
|
|
49
|
+
```
|
|
48
50
|
|
|
49
51
|
## Decorators Support
|
|
50
52
|
|
package/dist/AllureReporter.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { MochaAllure } from "./MochaAllure";
|
|
|
4
4
|
export declare class AllureReporter {
|
|
5
5
|
private readonly allureRuntime;
|
|
6
6
|
currentExecutable: ExecutableItemWrapper | null;
|
|
7
|
+
private cwd;
|
|
7
8
|
private suites;
|
|
8
9
|
private steps;
|
|
9
10
|
private runningTest;
|
|
@@ -26,5 +27,6 @@ export declare class AllureReporter {
|
|
|
26
27
|
popStep(): void;
|
|
27
28
|
pushSuite(suite: AllureGroup): void;
|
|
28
29
|
popSuite(): void;
|
|
30
|
+
private getSuitePath;
|
|
29
31
|
private endTest;
|
|
30
32
|
}
|
package/dist/AllureReporter.js
CHANGED
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AllureReporter = void 0;
|
|
4
4
|
const crypto_1 = require("crypto");
|
|
5
|
+
const path_1 = require("path");
|
|
5
6
|
const allure_js_commons_1 = require("allure-js-commons");
|
|
6
7
|
const MochaAllure_1 = require("./MochaAllure");
|
|
7
8
|
class AllureReporter {
|
|
8
9
|
constructor(allureRuntime) {
|
|
9
10
|
this.allureRuntime = allureRuntime;
|
|
10
11
|
this.currentExecutable = null;
|
|
12
|
+
this.cwd = process.cwd();
|
|
11
13
|
this.suites = [];
|
|
12
14
|
this.steps = [];
|
|
13
15
|
this.runningTest = null;
|
|
@@ -67,15 +69,24 @@ class AllureReporter {
|
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
startCase(test) {
|
|
72
|
+
var _a;
|
|
70
73
|
if (this.currentSuite === null) {
|
|
71
74
|
throw new Error("No active suite");
|
|
72
75
|
}
|
|
76
|
+
const testPath = (_a = test.file) === null || _a === void 0 ? void 0 : _a.replace(this.cwd, "");
|
|
73
77
|
this.currentTest = this.currentSuite.startTest(test.title);
|
|
74
78
|
this.currentTest.fullName = test.title;
|
|
75
79
|
this.currentTest.historyId = (0, crypto_1.createHash)("md5").update(test.fullTitle()).digest("hex");
|
|
76
80
|
this.currentTest.stage = allure_js_commons_1.Stage.RUNNING;
|
|
81
|
+
if (testPath) {
|
|
82
|
+
const normalizedTestPath = (0, path_1.normalize)(testPath || "")
|
|
83
|
+
.replace(/^\//, "")
|
|
84
|
+
.split("/")
|
|
85
|
+
.filter((item) => item !== (0, path_1.basename)(testPath));
|
|
86
|
+
this.currentTest.addLabel(allure_js_commons_1.LabelName.PACKAGE, normalizedTestPath.join("."));
|
|
87
|
+
}
|
|
77
88
|
if (test.parent) {
|
|
78
|
-
const [parentSuite, suite, ...subSuites] =
|
|
89
|
+
const [parentSuite, suite, ...subSuites] = this.getSuitePath(test);
|
|
79
90
|
if (parentSuite) {
|
|
80
91
|
this.currentTest.addLabel(allure_js_commons_1.LabelName.PARENT_SUITE, parentSuite);
|
|
81
92
|
}
|
|
@@ -125,6 +136,17 @@ class AllureReporter {
|
|
|
125
136
|
popSuite() {
|
|
126
137
|
this.suites.pop();
|
|
127
138
|
}
|
|
139
|
+
getSuitePath(test) {
|
|
140
|
+
const path = [];
|
|
141
|
+
let currentSuite = test.parent;
|
|
142
|
+
while (currentSuite) {
|
|
143
|
+
if (currentSuite.title) {
|
|
144
|
+
path.unshift(currentSuite.title);
|
|
145
|
+
}
|
|
146
|
+
currentSuite = currentSuite.parent;
|
|
147
|
+
}
|
|
148
|
+
return path;
|
|
149
|
+
}
|
|
128
150
|
endTest(status, details) {
|
|
129
151
|
if (this.currentTest === null) {
|
|
130
152
|
throw new Error("endTest while no test is running");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllureReporter.js","sourceRoot":"","sources":["../src/AllureReporter.ts"],"names":[],"mappings":";;;AAAA,mCAAoC;AACpC,yDAY2B;AAC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CAAC;SACrD;QAED,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,WAAW,CAAC,aAAa,GAAG,OAAO,CAAC;SAC1C;QACD,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC;QACjC,IAAI,CAAC,WAAW,CAAC,KAAK,GAAG,yBAAK,CAAC,QAAQ,CAAC;QACxC,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC;QAC3B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC1B,CAAC;CACF;AA7LD,wCA6LC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as Mocha from "mocha";
|
|
2
2
|
import { MochaAllure } from "./MochaAllure";
|
|
3
3
|
export declare let allure: MochaAllure;
|
|
4
|
+
declare type ParallelRunner = Mocha.Runner & {
|
|
5
|
+
linkPartialObjects?: (val: boolean) => ParallelRunner;
|
|
6
|
+
};
|
|
4
7
|
export declare class MochaAllureReporter extends Mocha.reporters.Base {
|
|
5
|
-
readonly runner:
|
|
8
|
+
readonly runner: ParallelRunner;
|
|
6
9
|
readonly opts: Mocha.MochaOptions;
|
|
7
10
|
private coreReporter;
|
|
8
|
-
constructor(runner:
|
|
11
|
+
constructor(runner: ParallelRunner, opts: Mocha.MochaOptions);
|
|
9
12
|
private onSuite;
|
|
10
13
|
private onSuiteEnd;
|
|
11
14
|
private onTest;
|
|
@@ -15,3 +18,4 @@ export declare class MochaAllureReporter extends Mocha.reporters.Base {
|
|
|
15
18
|
private onHookStart;
|
|
16
19
|
private onHookEnd;
|
|
17
20
|
}
|
|
21
|
+
export {};
|
|
@@ -23,24 +23,28 @@ exports.MochaAllureReporter = exports.allure = void 0;
|
|
|
23
23
|
const allure_js_commons_1 = require("allure-js-commons");
|
|
24
24
|
const Mocha = __importStar(require("mocha"));
|
|
25
25
|
const AllureReporter_1 = require("./AllureReporter");
|
|
26
|
+
const { EVENT_SUITE_BEGIN, EVENT_SUITE_END, EVENT_TEST_BEGIN, EVENT_TEST_END, EVENT_TEST_PASS, EVENT_TEST_FAIL, EVENT_TEST_PENDING, EVENT_HOOK_BEGIN, EVENT_HOOK_END, } = Mocha.Runner.constants;
|
|
26
27
|
class MochaAllureReporter extends Mocha.reporters.Base {
|
|
27
28
|
constructor(runner, opts) {
|
|
28
29
|
super(runner, opts);
|
|
29
30
|
this.runner = runner;
|
|
30
31
|
this.opts = opts;
|
|
31
|
-
const { resultsDir } = opts.reporterOptions;
|
|
32
|
-
const allureConfig = Object.assign({
|
|
32
|
+
const { resultsDir = "allure-results" } = opts.reporterOptions || {};
|
|
33
|
+
const allureConfig = Object.assign(Object.assign({}, opts.reporterOptions), { resultsDir });
|
|
33
34
|
this.coreReporter = new AllureReporter_1.AllureReporter(new allure_js_commons_1.AllureRuntime(allureConfig));
|
|
34
35
|
exports.allure = this.coreReporter.getImplementation();
|
|
35
|
-
|
|
36
|
-
.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
.on(
|
|
40
|
-
.on(
|
|
41
|
-
.on(
|
|
42
|
-
.on(
|
|
43
|
-
.on(
|
|
36
|
+
if (runner.linkPartialObjects) {
|
|
37
|
+
runner.linkPartialObjects(true);
|
|
38
|
+
}
|
|
39
|
+
runner
|
|
40
|
+
.on(EVENT_SUITE_BEGIN, this.onSuite.bind(this))
|
|
41
|
+
.on(EVENT_SUITE_END, this.onSuiteEnd.bind(this))
|
|
42
|
+
.on(EVENT_TEST_BEGIN, this.onTest.bind(this))
|
|
43
|
+
.on(EVENT_TEST_PASS, this.onPassed.bind(this))
|
|
44
|
+
.on(EVENT_TEST_FAIL, this.onFailed.bind(this))
|
|
45
|
+
.on(EVENT_TEST_PENDING, this.onPending.bind(this))
|
|
46
|
+
.on(EVENT_HOOK_BEGIN, this.onHookStart.bind(this))
|
|
47
|
+
.on(EVENT_HOOK_END, this.onHookEnd.bind(this));
|
|
44
48
|
}
|
|
45
49
|
onSuite(suite) {
|
|
46
50
|
this.coreReporter.startSuite(suite.fullTitle());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MochaAllureReporter.js","sourceRoot":"","sources":["../src/MochaAllureReporter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAgE;AAChE,6CAA+B;AAC/B,qDAAkD;
|
|
1
|
+
{"version":3,"file":"MochaAllureReporter.js","sourceRoot":"","sources":["../src/MochaAllureReporter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAgE;AAChE,6CAA+B;AAC/B,qDAAkD;AAIlD,MAAM,EACJ,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,GACf,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;AAQ3B,MAAa,mBAAoB,SAAQ,KAAK,CAAC,SAAS,CAAC,IAAI;IAG3D,YAAqB,MAAsB,EAAW,IAAwB;QAC5E,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QADD,WAAM,GAAN,MAAM,CAAgB;QAAW,SAAI,GAAJ,IAAI,CAAoB;QAG5E,MAAM,EAAE,UAAU,GAAG,gBAAgB,EAAE,GAAG,IAAI,CAAC,eAAe,IAAI,EAAE,CAAC;QACrE,MAAM,YAAY,mCACb,IAAI,CAAC,eAAe,KACvB,UAAU,GACX,CAAC;QAEF,IAAI,CAAC,YAAY,GAAG,IAAI,+BAAc,CAAC,IAAI,iCAAa,CAAC,YAAY,CAAC,CAAC,CAAC;QACxE,cAAM,GAAG,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,CAAC;QAE/C,IAAI,MAAM,CAAC,kBAAkB,EAAE;YAC7B,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;SACjC;QAED,MAAM;aACH,EAAE,CAAC,iBAAiB,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aAC9C,EAAE,CAAC,eAAe,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gB;QAClC,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAEO,SAAS,CAAC,IAAgB;QAChC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IAC1C,CAAC;CACF;AA7DD,kDA6DC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "allure-mocha",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.19",
|
|
4
4
|
"description": "Allure Mocha integration",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Sergey Korol <serhii.s.korol@gmail.com>",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "^4.4.2"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"allure-js-commons": "2.0.0-beta.
|
|
48
|
+
"allure-js-commons": "2.0.0-beta.19"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"mocha": ">=6.2.x"
|
package/runtime.d.ts
CHANGED
package/runtime.js
CHANGED
|
@@ -9,23 +9,23 @@ const _MochaAllure = require("./dist/MochaAllure");
|
|
|
9
9
|
const _MochaAllureReporter = require("./dist/MochaAllureReporter");
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", {
|
|
12
|
-
value: true
|
|
12
|
+
value: true,
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(module.exports, "MochaAllure", {
|
|
15
15
|
enumerable: true,
|
|
16
16
|
get: function () {
|
|
17
17
|
return _MochaAllure.MochaAllure;
|
|
18
|
-
}
|
|
18
|
+
},
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(module.exports, "allure", {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function () {
|
|
23
23
|
return _MochaAllureReporter.allure;
|
|
24
|
-
}
|
|
24
|
+
},
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(module.exports, "MochaAllureReporter", {
|
|
27
27
|
enumerable: true,
|
|
28
28
|
get: function () {
|
|
29
29
|
return _MochaAllureReporter.MochaAllureReporter;
|
|
30
|
-
}
|
|
30
|
+
},
|
|
31
31
|
});
|