cypress-qase-reporter 1.1.2 → 1.3.3
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 +21 -8
- package/dist/index.d.ts +2 -0
- package/dist/index.js +70 -39
- package/dist/index.js.map +1 -1
- package/package.json +8 -4
package/README.md
CHANGED
|
@@ -10,7 +10,17 @@ npm install cypress-qase-reporter
|
|
|
10
10
|
|
|
11
11
|
## Configuration
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Reporter options (* - required):
|
|
14
|
+
|
|
15
|
+
- *`apiToken` - Token for API access, you can find more information
|
|
16
|
+
[here](https://developers.qase.io/#authentication)
|
|
17
|
+
- *`projectCode` - Code of your project (can be extracted from main
|
|
18
|
+
page of your project: `https://app.qase.io/project/DEMOTR` -
|
|
19
|
+
`DEMOTR` is project code here)
|
|
20
|
+
- `runId` - Run ID from Qase TMS (also can be got from run URL)
|
|
21
|
+
- `logging` [true/false] - Enabled debug logging from reporter or not
|
|
22
|
+
|
|
23
|
+
Example cypress.json config:
|
|
14
24
|
|
|
15
25
|
```json
|
|
16
26
|
{
|
|
@@ -19,16 +29,20 @@ cypress.json configuration:
|
|
|
19
29
|
"apiToken": "578e3b73a34f06e84eafea103cd44dc24253b2c5",
|
|
20
30
|
"projectCode": "PRJCODE",
|
|
21
31
|
"runId": 45,
|
|
22
|
-
"logging": true
|
|
32
|
+
"logging": true
|
|
23
33
|
}
|
|
24
34
|
}
|
|
25
35
|
```
|
|
26
36
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
You can check example configuration with multiple reporters in [demo project](./demo/cypress.json)
|
|
38
|
+
|
|
39
|
+
Supported ENV variables:
|
|
40
|
+
|
|
41
|
+
- `QASE_REPORT` - You **should** pass this ENV if you want to use
|
|
42
|
+
qase reporter
|
|
43
|
+
- `QASE_RUN_ID` - Pass Run ID from ENV and override reporter options
|
|
44
|
+
- `QASE_RUN_NAME` - Set custom Run name, when new run is created
|
|
45
|
+
- `QASE_RUN_DESCRIPTION` - Set custom Run description, when new run is created
|
|
32
46
|
|
|
33
47
|
## Using Reporter
|
|
34
48
|
|
|
@@ -53,7 +67,6 @@ describe('My First Test', () => {
|
|
|
53
67
|
expect(true).to.equal(true);
|
|
54
68
|
})
|
|
55
69
|
);
|
|
56
|
-
);
|
|
57
70
|
qase(5,
|
|
58
71
|
it('Failed test', () => {
|
|
59
72
|
expect(true).to.equal(false);
|
package/dist/index.d.ts
CHANGED
|
@@ -3,12 +3,14 @@ declare class CypressQaseReporter extends reporters.Base {
|
|
|
3
3
|
private api;
|
|
4
4
|
private pending;
|
|
5
5
|
private results;
|
|
6
|
+
private shouldPublish;
|
|
6
7
|
private options;
|
|
7
8
|
private runId?;
|
|
8
9
|
constructor(runner: Runner, options: MochaOptions);
|
|
9
10
|
private log;
|
|
10
11
|
private addRunnerListeners;
|
|
11
12
|
private checkProject;
|
|
13
|
+
private createRun;
|
|
12
14
|
private checkRun;
|
|
13
15
|
private getEnv;
|
|
14
16
|
private saveRunId;
|
package/dist/index.js
CHANGED
|
@@ -31,12 +31,16 @@ var mocha_1 = require("mocha");
|
|
|
31
31
|
var models_1 = require("qaseio/dist/src/models");
|
|
32
32
|
var qaseio_1 = require("qaseio");
|
|
33
33
|
var chalk_1 = __importDefault(require("chalk"));
|
|
34
|
+
var deasync_1 = require("deasync");
|
|
34
35
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
35
36
|
var _a = mocha_1.Runner.constants, EVENT_TEST_FAIL = _a.EVENT_TEST_FAIL, EVENT_TEST_PASS = _a.EVENT_TEST_PASS, EVENT_TEST_PENDING = _a.EVENT_TEST_PENDING, EVENT_RUN_END = _a.EVENT_RUN_END;
|
|
36
37
|
var Envs;
|
|
37
38
|
(function (Envs) {
|
|
38
39
|
Envs["report"] = "QASE_REPORT";
|
|
40
|
+
Envs["apiToken"] = "QASE_API_TOKEN";
|
|
39
41
|
Envs["runId"] = "QASE_RUN_ID";
|
|
42
|
+
Envs["runName"] = "QASE_RUN_NAME";
|
|
43
|
+
Envs["runDescription"] = "QASE_RUN_DESCRIPTION";
|
|
40
44
|
})(Envs || (Envs = {}));
|
|
41
45
|
var CypressQaseReporter = /** @class */ (function (_super) {
|
|
42
46
|
__extends(CypressQaseReporter, _super);
|
|
@@ -44,33 +48,44 @@ var CypressQaseReporter = /** @class */ (function (_super) {
|
|
|
44
48
|
var _this = _super.call(this, runner, options) || this;
|
|
45
49
|
_this.pending = [];
|
|
46
50
|
_this.results = [];
|
|
51
|
+
_this.shouldPublish = 0;
|
|
47
52
|
_this.options = options.reporterOptions;
|
|
48
|
-
_this.api = new qaseio_1.QaseApi(_this.options.apiToken);
|
|
53
|
+
_this.api = new qaseio_1.QaseApi(_this.options.apiToken || _this.getEnv(Envs.apiToken) || '');
|
|
49
54
|
if (!_this.getEnv(Envs.report)) {
|
|
50
55
|
return _this;
|
|
51
56
|
}
|
|
57
|
+
_this.log(chalk_1.default(templateObject_1 || (templateObject_1 = __makeTemplateObject(["{yellow Current PID: ", "}"], ["{yellow Current PID: ", "}"])), process.pid));
|
|
52
58
|
_this.addRunnerListeners(runner);
|
|
53
59
|
_this.checkProject(_this.options.projectCode, function (prjExists) {
|
|
54
60
|
if (prjExists) {
|
|
55
|
-
_this.log(chalk_1.default(
|
|
56
|
-
if (_this.getEnv(Envs.runId)) {
|
|
57
|
-
_this.saveRunId(_this.getEnv(Envs.runId));
|
|
61
|
+
_this.log(chalk_1.default(templateObject_2 || (templateObject_2 = __makeTemplateObject(["{green Project ", " exists}"], ["{green Project ", " exists}"])), _this.options.projectCode));
|
|
62
|
+
if (_this.getEnv(Envs.runId) || _this.options.runId) {
|
|
63
|
+
_this.saveRunId(_this.getEnv(Envs.runId) || _this.options.runId);
|
|
64
|
+
_this.checkRun(_this.runId, function (runExists) {
|
|
65
|
+
var run = _this.runId;
|
|
66
|
+
if (runExists) {
|
|
67
|
+
_this.log(chalk_1.default(templateObject_3 || (templateObject_3 = __makeTemplateObject(["{green Using run ", " to publish test results}"], ["{green Using run ", " to publish test results}"])), run));
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
_this.log(chalk_1.default(templateObject_4 || (templateObject_4 = __makeTemplateObject(["{red Run ", " does not exist}"], ["{red Run ", " does not exist}"])), run));
|
|
71
|
+
}
|
|
72
|
+
});
|
|
58
73
|
}
|
|
59
|
-
if (!_this.runId) {
|
|
60
|
-
_this.
|
|
74
|
+
else if (!_this.runId) {
|
|
75
|
+
_this.createRun(_this.getEnv(Envs.runName), _this.getEnv(Envs.runDescription), function (created) {
|
|
76
|
+
if (created) {
|
|
77
|
+
_this.saveRunId(created.id);
|
|
78
|
+
process.env.QASE_RUN_ID = created.id.toString();
|
|
79
|
+
_this.log(chalk_1.default(templateObject_5 || (templateObject_5 = __makeTemplateObject(["{green Using run ", " to publish test results}"], ["{green Using run ", " to publish test results}"])), _this.runId));
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
_this.log(chalk_1.default(templateObject_6 || (templateObject_6 = __makeTemplateObject(["{red Could not create run in project ", "}"], ["{red Could not create run in project ", "}"])), _this.options.projectCode));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
61
85
|
}
|
|
62
|
-
_this.checkRun(_this.runId, function (runExists) {
|
|
63
|
-
var run = _this.runId;
|
|
64
|
-
if (runExists) {
|
|
65
|
-
_this.log(chalk_1.default(templateObject_2 || (templateObject_2 = __makeTemplateObject(["{green Using run ", " to publish test results}"], ["{green Using run ", " to publish test results}"])), run));
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
_this.log(chalk_1.default(templateObject_3 || (templateObject_3 = __makeTemplateObject(["{red Run ", " does not exist}"], ["{red Run ", " does not exist}"])), run));
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
86
|
}
|
|
72
87
|
else {
|
|
73
|
-
_this.log(chalk_1.default(
|
|
88
|
+
_this.log(chalk_1.default(templateObject_7 || (templateObject_7 = __makeTemplateObject(["{red Project ", " does not exist}"], ["{red Project ", " does not exist}"])), _this.options.projectCode));
|
|
74
89
|
}
|
|
75
90
|
});
|
|
76
91
|
return _this;
|
|
@@ -81,7 +96,7 @@ var CypressQaseReporter = /** @class */ (function (_super) {
|
|
|
81
96
|
optionalParams[_i - 1] = arguments[_i];
|
|
82
97
|
}
|
|
83
98
|
if (this.options.logging) {
|
|
84
|
-
console.log.apply(console, __spreadArrays([chalk_1.default(
|
|
99
|
+
console.log.apply(console, __spreadArrays([chalk_1.default(templateObject_8 || (templateObject_8 = __makeTemplateObject(["{bold {blue qase:}} ", ""], ["{bold {blue qase:}} ", ""])), message)], optionalParams));
|
|
85
100
|
}
|
|
86
101
|
};
|
|
87
102
|
CypressQaseReporter.prototype.addRunnerListeners = function (runner) {
|
|
@@ -96,19 +111,20 @@ var CypressQaseReporter = /** @class */ (function (_super) {
|
|
|
96
111
|
_this.publishCaseResult(test, models_1.ResultStatus.FAILED);
|
|
97
112
|
});
|
|
98
113
|
runner.on(EVENT_RUN_END, function () {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
114
|
+
if (_this.results.length === 0 && _this.shouldPublish === 0) {
|
|
115
|
+
_this.log('No testcases were matched. Ensure that your tests are declared correctly.');
|
|
116
|
+
}
|
|
117
|
+
if (_this.runId && _this.shouldPublish !== 0) {
|
|
118
|
+
_this.log(chalk_1.default(templateObject_9 || (templateObject_9 = __makeTemplateObject(["{blue Waiting for 30 seconds to publish pending results}"], ["{blue Waiting for 30 seconds to publish pending results}"]))));
|
|
119
|
+
var endTime = Date.now() + 30e3;
|
|
120
|
+
while ((_this.shouldPublish !== 0) && (Date.now() < endTime)) {
|
|
121
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
122
|
+
deasync_1.sleep(500);
|
|
123
|
+
}
|
|
124
|
+
if (_this.runId && _this.shouldPublish !== 0) {
|
|
125
|
+
_this.log(chalk_1.default(templateObject_10 || (templateObject_10 = __makeTemplateObject(["{red Could not send all results for 30 seconds after run. Please contact Qase Team.}"], ["{red Could not send all results for 30 seconds after run. Please contact Qase Team.}"]))));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
112
128
|
});
|
|
113
129
|
};
|
|
114
130
|
CypressQaseReporter.prototype.checkProject = function (projectCode, cb) {
|
|
@@ -119,13 +135,24 @@ var CypressQaseReporter = /** @class */ (function (_super) {
|
|
|
119
135
|
_this.log(err);
|
|
120
136
|
});
|
|
121
137
|
};
|
|
138
|
+
CypressQaseReporter.prototype.createRun = function (name, description, cb) {
|
|
139
|
+
var _this = this;
|
|
140
|
+
this.api.runs.create(this.options.projectCode, new models_1.RunCreate(name || "Automated run " + new Date().toISOString(), [],
|
|
141
|
+
// eslint-disable-next-line camelcase
|
|
142
|
+
{ description: description || 'Cypress automated run', is_autotest: true }))
|
|
143
|
+
.then(function (res) { return res.data; })
|
|
144
|
+
.then(cb)
|
|
145
|
+
.catch(function (err) {
|
|
146
|
+
_this.log("Error on creating run " + err);
|
|
147
|
+
});
|
|
148
|
+
};
|
|
122
149
|
CypressQaseReporter.prototype.checkRun = function (runId, cb) {
|
|
123
150
|
var _this = this;
|
|
124
151
|
if (runId !== undefined) {
|
|
125
152
|
this.api.runs.exists(this.options.projectCode, runId)
|
|
126
153
|
.then(cb)
|
|
127
154
|
.catch(function (err) {
|
|
128
|
-
_this.log(err);
|
|
155
|
+
_this.log("Error on checking run " + err);
|
|
129
156
|
});
|
|
130
157
|
}
|
|
131
158
|
else {
|
|
@@ -157,9 +184,9 @@ var CypressQaseReporter = /** @class */ (function (_super) {
|
|
|
157
184
|
};
|
|
158
185
|
CypressQaseReporter.prototype.logTestItem = function (test) {
|
|
159
186
|
var map = {
|
|
160
|
-
failed: chalk_1.default(
|
|
161
|
-
passed: chalk_1.default(
|
|
162
|
-
pending: chalk_1.default(
|
|
187
|
+
failed: chalk_1.default(templateObject_11 || (templateObject_11 = __makeTemplateObject(["{red Test ", " ", "}"], ["{red Test ", " ", "}"])), test.title, test.state),
|
|
188
|
+
passed: chalk_1.default(templateObject_12 || (templateObject_12 = __makeTemplateObject(["{green Test ", " ", "}"], ["{green Test ", " ", "}"])), test.title, test.state),
|
|
189
|
+
pending: chalk_1.default(templateObject_13 || (templateObject_13 = __makeTemplateObject(["{blueBright Test ", " ", "}"], ["{blueBright Test ", " ", "}"])), test.title, test.state),
|
|
163
190
|
};
|
|
164
191
|
if (test.state) {
|
|
165
192
|
this.log(map[test.state]);
|
|
@@ -170,22 +197,26 @@ var CypressQaseReporter = /** @class */ (function (_super) {
|
|
|
170
197
|
this.logTestItem(test);
|
|
171
198
|
var caseIds = this.getCaseId(test);
|
|
172
199
|
caseIds.forEach(function (caseId) {
|
|
200
|
+
_this.shouldPublish++;
|
|
173
201
|
var publishTest = function (runId) {
|
|
174
202
|
var _a;
|
|
175
203
|
if (caseId) {
|
|
176
|
-
var add_1 = caseIds.length > 1 ? chalk_1.default(
|
|
177
|
-
_this.log(chalk_1.default(
|
|
204
|
+
var add_1 = caseIds.length > 1 ? chalk_1.default(templateObject_14 || (templateObject_14 = __makeTemplateObject([" {white For case ", "}"], [" {white For case ", "}"])), caseId) : '';
|
|
205
|
+
_this.log(chalk_1.default(templateObject_15 || (templateObject_15 = __makeTemplateObject(["{gray Start publishing: ", "}", ""], ["{gray Start publishing: ", "}", ""])), test.title, add_1));
|
|
178
206
|
_this.api.results.create(_this.options.projectCode, runId, new models_1.ResultCreate(caseId, status, {
|
|
179
|
-
|
|
207
|
+
// eslint-disable-next-line camelcase
|
|
208
|
+
time_ms: test.duration,
|
|
180
209
|
stacktrace: (_a = test.err) === null || _a === void 0 ? void 0 : _a.stack,
|
|
181
210
|
comment: test.err ? test.err.name + ": " + test.err.message : undefined,
|
|
182
211
|
}))
|
|
183
212
|
.then(function (res) {
|
|
184
213
|
_this.results.push({ test: test, result: res.data });
|
|
185
|
-
_this.log(chalk_1.default(
|
|
214
|
+
_this.log(chalk_1.default(templateObject_16 || (templateObject_16 = __makeTemplateObject(["{gray Result published: ", " ", "}", ""], ["{gray Result published: ", " ", "}", ""])), test.title, res.data.hash, add_1));
|
|
215
|
+
_this.shouldPublish--;
|
|
186
216
|
})
|
|
187
217
|
.catch(function (err) {
|
|
188
218
|
_this.log(err);
|
|
219
|
+
_this.shouldPublish--;
|
|
189
220
|
});
|
|
190
221
|
}
|
|
191
222
|
};
|
|
@@ -199,6 +230,6 @@ var CypressQaseReporter = /** @class */ (function (_super) {
|
|
|
199
230
|
};
|
|
200
231
|
return CypressQaseReporter;
|
|
201
232
|
}(mocha_1.reporters.Base));
|
|
202
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11;
|
|
233
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16;
|
|
203
234
|
module.exports = CypressQaseReporter;
|
|
204
235
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,+BAA8D;AAC9D,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA+B;AAC/B,+BAA8D;AAC9D,iDAA0G;AAC1G,iCAAiC;AACjC,gDAA0B;AAC1B,mCAAgC;AAGhC,mEAAmE;AAC7D,IAAA,KAKF,cAAM,CAAC,SAAS,EAJhB,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AC,AA5ND,CAAkC,iBAAS,CAAC,IAAI,GA4N/C;;AAED,iBAAS,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cypress-qase-reporter",
|
|
3
|
-
"version": "v1.
|
|
3
|
+
"version": "v1.3.3",
|
|
4
4
|
"description": "Qase TMS Cypress Reporter",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -28,9 +28,14 @@
|
|
|
28
28
|
"email": "csctclan@gmail.com"
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"deasync": "^0.1.21",
|
|
33
|
+
"qaseio": "^1.5.0"
|
|
34
|
+
},
|
|
31
35
|
"devDependencies": {
|
|
32
36
|
"@hutson/npm-deploy-git-tag": "^6.0.0",
|
|
33
37
|
"@types/chalk": "^2.2.0",
|
|
38
|
+
"@types/deasync": "^0.1.1",
|
|
34
39
|
"@types/jest": "^23.3.7",
|
|
35
40
|
"@types/mocha": "^7.0.2",
|
|
36
41
|
"@typescript-eslint/eslint-plugin": "^3.10.1",
|
|
@@ -42,11 +47,10 @@
|
|
|
42
47
|
"eslint": "^7.14.0",
|
|
43
48
|
"eslint-plugin-jsdoc": "^26.0.1",
|
|
44
49
|
"eslint-plugin-prefer-arrow": "^1.2.2",
|
|
45
|
-
"handlebars": "^4.7.
|
|
50
|
+
"handlebars": "^4.7.7",
|
|
46
51
|
"jest": "^26.6.3",
|
|
47
|
-
"mocha": "^
|
|
52
|
+
"mocha": "^9.0.0",
|
|
48
53
|
"nodemon": "^2.0.6",
|
|
49
|
-
"qaseio": "^1.1.3",
|
|
50
54
|
"ts-jest": "^26.4.4",
|
|
51
55
|
"typescript": "^3.9.7"
|
|
52
56
|
}
|