cypress-qase-reporter 1.2.0 → 1.4.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/dist/index.d.ts CHANGED
@@ -3,6 +3,7 @@ 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);
package/dist/index.js CHANGED
@@ -47,24 +47,26 @@ var CypressQaseReporter = /** @class */ (function (_super) {
47
47
  var _this = _super.call(this, runner, options) || this;
48
48
  _this.pending = [];
49
49
  _this.results = [];
50
+ _this.shouldPublish = 0;
50
51
  _this.options = options.reporterOptions;
51
52
  _this.api = new qaseio_1.QaseApi(_this.options.apiToken || _this.getEnv(Envs.apiToken) || '');
52
53
  if (!_this.getEnv(Envs.report)) {
53
54
  return _this;
54
55
  }
56
+ _this.log(chalk_1.default(templateObject_1 || (templateObject_1 = __makeTemplateObject(["{yellow Current PID: ", "}"], ["{yellow Current PID: ", "}"])), process.pid));
55
57
  _this.addRunnerListeners(runner);
56
58
  _this.checkProject(_this.options.projectCode, function (prjExists) {
57
59
  if (prjExists) {
58
- _this.log(chalk_1.default(templateObject_1 || (templateObject_1 = __makeTemplateObject(["{green Project ", " exists}"], ["{green Project ", " exists}"])), _this.options.projectCode));
60
+ _this.log(chalk_1.default(templateObject_2 || (templateObject_2 = __makeTemplateObject(["{green Project ", " exists}"], ["{green Project ", " exists}"])), _this.options.projectCode));
59
61
  if (_this.getEnv(Envs.runId) || _this.options.runId) {
60
62
  _this.saveRunId(_this.getEnv(Envs.runId) || _this.options.runId);
61
63
  _this.checkRun(_this.runId, function (runExists) {
62
64
  var run = _this.runId;
63
65
  if (runExists) {
64
- _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
+ _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));
65
67
  }
66
68
  else {
67
- _this.log(chalk_1.default(templateObject_3 || (templateObject_3 = __makeTemplateObject(["{red Run ", " does not exist}"], ["{red Run ", " does not exist}"])), run));
69
+ _this.log(chalk_1.default(templateObject_4 || (templateObject_4 = __makeTemplateObject(["{red Run ", " does not exist}"], ["{red Run ", " does not exist}"])), run));
68
70
  }
69
71
  });
70
72
  }
@@ -72,16 +74,17 @@ var CypressQaseReporter = /** @class */ (function (_super) {
72
74
  _this.createRun(_this.getEnv(Envs.runName), _this.getEnv(Envs.runDescription), function (created) {
73
75
  if (created) {
74
76
  _this.saveRunId(created.id);
75
- _this.log(chalk_1.default(templateObject_4 || (templateObject_4 = __makeTemplateObject(["{green Using run ", " to publish test results}"], ["{green Using run ", " to publish test results}"])), _this.runId));
77
+ process.env.QASE_RUN_ID = created.id.toString();
78
+ _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));
76
79
  }
77
80
  else {
78
- _this.log(chalk_1.default(templateObject_5 || (templateObject_5 = __makeTemplateObject(["{red Could not create run in project ", "}"], ["{red Could not create run in project ", "}"])), _this.options.projectCode));
81
+ _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));
79
82
  }
80
83
  });
81
84
  }
82
85
  }
83
86
  else {
84
- _this.log(chalk_1.default(templateObject_6 || (templateObject_6 = __makeTemplateObject(["{red Project ", " does not exist}"], ["{red Project ", " does not exist}"])), _this.options.projectCode));
87
+ _this.log(chalk_1.default(templateObject_7 || (templateObject_7 = __makeTemplateObject(["{red Project ", " does not exist}"], ["{red Project ", " does not exist}"])), _this.options.projectCode));
85
88
  }
86
89
  });
87
90
  return _this;
@@ -92,7 +95,7 @@ var CypressQaseReporter = /** @class */ (function (_super) {
92
95
  optionalParams[_i - 1] = arguments[_i];
93
96
  }
94
97
  if (this.options.logging) {
95
- console.log.apply(console, __spreadArrays([chalk_1.default(templateObject_7 || (templateObject_7 = __makeTemplateObject(["{bold {blue qase:}} ", ""], ["{bold {blue qase:}} ", ""])), message)], optionalParams));
98
+ console.log.apply(console, __spreadArrays([chalk_1.default(templateObject_8 || (templateObject_8 = __makeTemplateObject(["{bold {blue qase:}} ", ""], ["{bold {blue qase:}} ", ""])), message)], optionalParams));
96
99
  }
97
100
  };
98
101
  CypressQaseReporter.prototype.addRunnerListeners = function (runner) {
@@ -107,19 +110,22 @@ var CypressQaseReporter = /** @class */ (function (_super) {
107
110
  _this.publishCaseResult(test, models_1.ResultStatus.FAILED);
108
111
  });
109
112
  runner.on(EVENT_RUN_END, function () {
110
- var check = function () {
111
- setTimeout(function () {
112
- if (_this.pending) {
113
- check();
114
- }
115
- else {
116
- if (_this.results.length === 0) {
117
- console.warn("\n(Qase Reporter)\n \nNo testcases were matched.\n Ensure that your tests are declared correctly.\n");
118
- }
119
- }
120
- }, 1000);
121
- };
122
- check();
113
+ if (_this.results.length === 0 && _this.shouldPublish === 0) {
114
+ _this.log('No testcases were matched. Ensure that your tests are declared correctly.');
115
+ }
116
+ if (_this.runId && _this.shouldPublish !== 0) {
117
+ _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}"]))));
118
+ var endTime = Date.now() + 30e3;
119
+ while ((_this.shouldPublish !== 0) && (Date.now() < endTime)) {
120
+ // sleep 500 ms
121
+ var sharedArrayBuffer = new SharedArrayBuffer(8);
122
+ var int32array = new Int32Array(sharedArrayBuffer);
123
+ Atomics.wait(int32array, 0, 0, 500);
124
+ }
125
+ if (_this.runId && _this.shouldPublish !== 0) {
126
+ _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.}"]))));
127
+ }
128
+ }
123
129
  });
124
130
  };
125
131
  CypressQaseReporter.prototype.checkProject = function (projectCode, cb) {
@@ -132,7 +138,9 @@ var CypressQaseReporter = /** @class */ (function (_super) {
132
138
  };
133
139
  CypressQaseReporter.prototype.createRun = function (name, description, cb) {
134
140
  var _this = this;
135
- this.api.runs.create(this.options.projectCode, new models_1.RunCreate(name || "Automated run " + new Date().toISOString(), [], { description: description || 'Cypress automated run' }))
141
+ this.api.runs.create(this.options.projectCode, new models_1.RunCreate(name || "Automated run " + new Date().toISOString(), [],
142
+ // eslint-disable-next-line camelcase
143
+ { description: description || 'Cypress automated run', is_autotest: true }))
136
144
  .then(function (res) { return res.data; })
137
145
  .then(cb)
138
146
  .catch(function (err) {
@@ -177,9 +185,9 @@ var CypressQaseReporter = /** @class */ (function (_super) {
177
185
  };
178
186
  CypressQaseReporter.prototype.logTestItem = function (test) {
179
187
  var map = {
180
- failed: chalk_1.default(templateObject_8 || (templateObject_8 = __makeTemplateObject(["{red Test ", " ", "}"], ["{red Test ", " ", "}"])), test.title, test.state),
181
- passed: chalk_1.default(templateObject_9 || (templateObject_9 = __makeTemplateObject(["{green Test ", " ", "}"], ["{green Test ", " ", "}"])), test.title, test.state),
182
- pending: chalk_1.default(templateObject_10 || (templateObject_10 = __makeTemplateObject(["{blueBright Test ", " ", "}"], ["{blueBright Test ", " ", "}"])), test.title, test.state),
188
+ failed: chalk_1.default(templateObject_11 || (templateObject_11 = __makeTemplateObject(["{red Test ", " ", "}"], ["{red Test ", " ", "}"])), test.title, test.state),
189
+ passed: chalk_1.default(templateObject_12 || (templateObject_12 = __makeTemplateObject(["{green Test ", " ", "}"], ["{green Test ", " ", "}"])), test.title, test.state),
190
+ pending: chalk_1.default(templateObject_13 || (templateObject_13 = __makeTemplateObject(["{blueBright Test ", " ", "}"], ["{blueBright Test ", " ", "}"])), test.title, test.state),
183
191
  };
184
192
  if (test.state) {
185
193
  this.log(map[test.state]);
@@ -190,22 +198,26 @@ var CypressQaseReporter = /** @class */ (function (_super) {
190
198
  this.logTestItem(test);
191
199
  var caseIds = this.getCaseId(test);
192
200
  caseIds.forEach(function (caseId) {
201
+ _this.shouldPublish++;
193
202
  var publishTest = function (runId) {
194
203
  var _a;
195
204
  if (caseId) {
196
- var add_1 = caseIds.length > 1 ? chalk_1.default(templateObject_11 || (templateObject_11 = __makeTemplateObject([" {white For case ", "}"], [" {white For case ", "}"])), caseId) : '';
197
- _this.log(chalk_1.default(templateObject_12 || (templateObject_12 = __makeTemplateObject(["{gray Start publishing: ", "}", ""], ["{gray Start publishing: ", "}", ""])), test.title, add_1));
205
+ var add_1 = caseIds.length > 1 ? chalk_1.default(templateObject_14 || (templateObject_14 = __makeTemplateObject([" {white For case ", "}"], [" {white For case ", "}"])), caseId) : '';
206
+ _this.log(chalk_1.default(templateObject_15 || (templateObject_15 = __makeTemplateObject(["{gray Start publishing: ", "}", ""], ["{gray Start publishing: ", "}", ""])), test.title, add_1));
198
207
  _this.api.results.create(_this.options.projectCode, runId, new models_1.ResultCreate(caseId, status, {
199
- time: test.duration,
208
+ // eslint-disable-next-line camelcase
209
+ time_ms: test.duration,
200
210
  stacktrace: (_a = test.err) === null || _a === void 0 ? void 0 : _a.stack,
201
211
  comment: test.err ? test.err.name + ": " + test.err.message : undefined,
202
212
  }))
203
213
  .then(function (res) {
204
214
  _this.results.push({ test: test, result: res.data });
205
- _this.log(chalk_1.default(templateObject_13 || (templateObject_13 = __makeTemplateObject(["{gray Result published: ", " ", "}", ""], ["{gray Result published: ", " ", "}", ""])), test.title, res.data.hash, add_1));
215
+ _this.log(chalk_1.default(templateObject_16 || (templateObject_16 = __makeTemplateObject(["{gray Result published: ", " ", "}", ""], ["{gray Result published: ", " ", "}", ""])), test.title, res.data.hash, add_1));
216
+ _this.shouldPublish--;
206
217
  })
207
218
  .catch(function (err) {
208
219
  _this.log(err);
220
+ _this.shouldPublish--;
209
221
  });
210
222
  }
211
223
  };
@@ -219,6 +231,6 @@ var CypressQaseReporter = /** @class */ (function (_super) {
219
231
  };
220
232
  return CypressQaseReporter;
221
233
  }(mocha_1.reporters.Base));
222
- 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;
234
+ 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;
223
235
  module.exports = CypressQaseReporter;
224
236
  //# 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,iDAA0G;AAC1G,iCAAiC;AACjC,gDAA0B;AAE1B,mEAAmE;AAC7D,IAAA,KAKF,cAAM,CAAC,SAAS,EAJhB,eAAe,qBAAA,EACf,eAAe,qBAAA,EACf,kBAAkB,wBAAA,EAClB,aAAa,mBACG,CAAC;AAErB,IAAK,IAMJ;AAND,WAAK,IAAI;IACL,8BAAsB,CAAA;IACtB,mCAA2B,CAAA;IAC3B,6BAAqB,CAAA;IACrB,iCAAyB,CAAA;IACzB,+CAAuC,CAAA;AAC3C,CAAC,EANI,IAAI,KAAJ,IAAI,QAMR;AAUD;IAAkC,uCAAc;IAO5C,6BAAmB,MAAc,EAAE,OAAqB;QAAxD,YACI,kBAAM,MAAM,EAAE,OAAO,CAAC,SAgDzB;QAtDO,aAAO,GAA4C,EAAE,CAAC;QACtD,aAAO,GAA+C,EAAE,CAAC;QAO7D,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC,eAA8B,CAAC;QACtD,KAAI,CAAC,GAAG,GAAG,IAAI,gBAAO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,KAAI,CAAC,aAAa,EAAE,CAAC;oBACzB,CAAC,CAAC;yBACD,KAAK,CAAC,UAAC,GAAG;wBACP,KAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;wBACd,KAAI,CAAC,aAAa,EAAE,CAAC;oBACzB,CAAC,CAAC,CAAC;iBACV;YACL,CAAC,CAAC;YAEF,IAAI,KAAI,CAAC,KAAK,EAAE;gBACZ,WAAW,CAAC,KAAI,CAAC,KAAK,CAAC,CAAC;aAC3B;iBAAM;gBACH,KAAI,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;aAClC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IACL,0BAAC;AAAD,CAAC,AA9ND,CAAkC,iBAAS,CAAC,IAAI,GA8N/C;;AAED,iBAAS,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress-qase-reporter",
3
- "version": "v1.2.0",
3
+ "version": "v1.4.0",
4
4
  "description": "Qase TMS Cypress Reporter",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "dependencies": {
32
- "qaseio": "^1.2.0"
32
+ "qaseio": "^1.5.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@hutson/npm-deploy-git-tag": "^6.0.0",
@@ -45,9 +45,9 @@
45
45
  "eslint": "^7.14.0",
46
46
  "eslint-plugin-jsdoc": "^26.0.1",
47
47
  "eslint-plugin-prefer-arrow": "^1.2.2",
48
- "handlebars": "^4.7.6",
48
+ "handlebars": "^4.7.7",
49
49
  "jest": "^26.6.3",
50
- "mocha": "^8.2.1",
50
+ "mocha": "^9.0.0",
51
51
  "nodemon": "^2.0.6",
52
52
  "ts-jest": "^26.4.4",
53
53
  "typescript": "^3.9.7"