testcafe-reporter-qase 1.2.1 → 2.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.
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestcafeQaseReporter = void 0;
4
+ const uuid_1 = require("uuid");
5
+ const qase_javascript_commons_1 = require("qase-javascript-commons");
6
+ /**
7
+ * @class TestcafeQaseReporter
8
+ */
9
+ class TestcafeQaseReporter {
10
+ /**
11
+ * @param {Record<string, string>} meta
12
+ * @returns {number[]}
13
+ * @private
14
+ */
15
+ static getCaseId(meta) {
16
+ if (!meta['CID']) {
17
+ return [];
18
+ }
19
+ const ids = Array.isArray(meta['CID'])
20
+ ? meta['CID']
21
+ : meta['CID'].split(',');
22
+ return ids.map((id) => Number(id));
23
+ }
24
+ /**
25
+ * @param {TestRunInfoType} testRunInfo
26
+ * @returns {TestStatusEnum}
27
+ * @private
28
+ */
29
+ static getStatus(testRunInfo) {
30
+ if (testRunInfo.skipped) {
31
+ return qase_javascript_commons_1.TestStatusEnum.skipped;
32
+ }
33
+ else if (testRunInfo.errs.length > 0) {
34
+ return qase_javascript_commons_1.TestStatusEnum.failed;
35
+ }
36
+ return qase_javascript_commons_1.TestStatusEnum.passed;
37
+ }
38
+ /**
39
+ * @param {TestRunErrorFormattableAdapterType[]} errors
40
+ * @returns {Error}
41
+ * @private
42
+ */
43
+ static transformErrors(errors) {
44
+ const [errorMessages, errorStacks] = errors.reduce(([messages, stacks], error) => {
45
+ const stack = error.callsite?.stackFrames?.map((line) => String(line)) ?? [];
46
+ messages.push(error.errMsg ?? 'Error');
47
+ stacks.push(stack.join('\n'));
48
+ return [messages, stacks];
49
+ }, [[], []]);
50
+ const error = new Error(errorMessages.join('\n\n'));
51
+ error.stack = errorStacks.join('\n\n');
52
+ return error;
53
+ }
54
+ /**
55
+ * @param {ScreenshotType[]} attachments
56
+ * @returns {string[]}
57
+ * @private
58
+ */
59
+ static transformAttachments(attachments) {
60
+ return attachments.map(({ screenshotPath }) => screenshotPath);
61
+ }
62
+ /**
63
+ * @param {TestcafeQaseOptionsType} options
64
+ * @param {ConfigLoaderInterface} configLoader
65
+ */
66
+ constructor(options, configLoader = new qase_javascript_commons_1.ConfigLoader()) {
67
+ /**
68
+ * @param {string} title
69
+ * @param {TestRunInfoType} testRunInfo
70
+ * @param {Record<string, string>} meta
71
+ */
72
+ this.reportTestDone = (title, testRunInfo, meta) => {
73
+ this.reporter.addTestResult({
74
+ id: (0, uuid_1.v4)(),
75
+ testOpsId: TestcafeQaseReporter.getCaseId(meta),
76
+ title: title,
77
+ suiteTitle: testRunInfo.fixture.name,
78
+ status: TestcafeQaseReporter.getStatus(testRunInfo),
79
+ error: TestcafeQaseReporter.transformErrors(testRunInfo.errs),
80
+ duration: testRunInfo.durationMs,
81
+ attachments: TestcafeQaseReporter.transformAttachments(testRunInfo.screenshots),
82
+ });
83
+ };
84
+ /**
85
+ * @returns {Promise<void>}
86
+ */
87
+ this.reportTaskDone = async () => {
88
+ await this.reporter.publish();
89
+ };
90
+ const config = configLoader.load();
91
+ this.reporter = new qase_javascript_commons_1.QaseReporter({
92
+ ...(0, qase_javascript_commons_1.composeOptions)(options, config),
93
+ frameworkPackage: 'testcafe',
94
+ frameworkName: 'testcafe',
95
+ reporterName: 'testcafe-reporter-qase',
96
+ });
97
+ }
98
+ }
99
+ exports.TestcafeQaseReporter = TestcafeQaseReporter;
package/package.json CHANGED
@@ -1,58 +1,54 @@
1
1
  {
2
2
  "name": "testcafe-reporter-qase",
3
- "version": "v1.2.1",
3
+ "version": "2.0.0-beta.1",
4
4
  "description": "Qase TMS TestCafe Reporter",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "homepage": "https://github.com/qase-tms/qase-testcafe",
7
+ "exports": {
8
+ ".": "./dist/index.js",
9
+ "./reporter": "./dist/reporter.js",
10
+ "./package.json": "./package.json"
11
+ },
12
+ "typesVersions": {
13
+ "*": {
14
+ ".": [
15
+ "./dist/index.d.ts"
16
+ ],
17
+ "reporter": [
18
+ "./dist/reporter.d.ts"
19
+ ]
20
+ }
21
+ },
22
+ "homepage": "https://github.com/qase-tms/qase-javascript",
8
23
  "bugs": {
9
- "url": "https://github.com/qase-tms/qase-testcafe"
24
+ "url": "https://github.com/qase-tms/qase-javascript/issues"
10
25
  },
11
26
  "repository": {
12
27
  "type": "git",
13
- "url": "https://github.com/qase-tms/qase-testcafe.git"
28
+ "url": "git+https://github.com/qase-tms/qase-javascript.git"
14
29
  },
15
30
  "engines": {
16
31
  "node": ">=14"
17
32
  },
18
33
  "scripts": {
19
- "dev": "npm run lint && tsc",
20
- "dev:watch": "nodemon --exec 'npm run dev || exit 1'",
21
- "lint": "eslint src/**",
22
- "lint:fix": "eslint --fix src/**",
23
- "build": "npm run clean && npm run dev",
24
- "test": "jest --coverage",
25
- "clean": "rm -rf dist || true"
26
- },
27
- "author": {
28
- "name": "Parviz Khavari",
29
- "email": "havaripa@gmail.com"
34
+ "build": "npm run clean && tsc --project tsconfig.build.json",
35
+ "lint": "eslint .",
36
+ "test": "jest --passWithNoTests",
37
+ "clean": "rm -rf dist"
30
38
  },
39
+ "author": "Parviz Khavari <havaripa@gmail.com>",
31
40
  "license": "Apache-2.0",
32
- "devDependencies": {
33
- "@hutson/npm-deploy-git-tag": "^6.0.0",
34
- "@types/jest": "^23.3.7",
35
- "@types/node-fetch": "^2.5.7",
36
- "@typescript-eslint/eslint-plugin": "^3.10.1",
37
- "@typescript-eslint/eslint-plugin-tslint": "^3.10.1",
38
- "@typescript-eslint/parser": "^3.10.1",
39
- "ansi-regex": "^6.0.1",
40
- "axios-mock-adapter": "^1.19.0",
41
- "eslint": "^7.17.0",
42
- "eslint-plugin-jsdoc": "^26.0.1",
43
- "eslint-plugin-prefer-arrow": "^1.2.1",
44
- "handlebars": "^4.7.7",
45
- "jest": "^26.6.3",
46
- "json-schema": "^0.4.0",
47
- "moment": "^2.29.1",
48
- "node-fetch": "^3.1.1",
49
- "nodemon": "^2.0.7",
50
- "ts-jest": "^26.4.4",
51
- "typescript": "^3.9.3"
52
- },
53
41
  "dependencies": {
54
- "chalk": "^4.1.0",
55
- "form-data": "^3.0.0",
56
- "qaseio": "^2.0.2"
42
+ "qase-javascript-commons": "^2.0.0-beta.1",
43
+ "uuid": "^9.0.0"
44
+ },
45
+ "peerDependencies": {
46
+ "testcafe": ">=2.0.0"
47
+ },
48
+ "devDependencies": {
49
+ "@jest/globals": "^29.5.0",
50
+ "@types/jest": "^29.5.2",
51
+ "jest": "^29.5.0",
52
+ "ts-jest": "^29.1.0"
57
53
  }
58
54
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+
4
+ "compilerOptions": {
5
+ "noEmit": false
6
+ },
7
+
8
+ "include": ["./src/**/*.ts"]
9
+ }
@@ -1,6 +0,0 @@
1
- import FormData from 'form-data';
2
- export declare let customBoundary: string;
3
- export declare class CustomBoundaryFormData extends FormData {
4
- constructor();
5
- getBoundary(): string;
6
- }
@@ -1,37 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.CustomBoundaryFormData = exports.customBoundary = void 0;
20
- var form_data_1 = __importDefault(require("form-data"));
21
- var crypto_1 = __importDefault(require("crypto"));
22
- exports.customBoundary = '----------------------------';
23
- crypto_1.default.randomBytes(24).forEach(function (value) {
24
- exports.customBoundary += Math.floor(value * 10).toString(16);
25
- });
26
- var CustomBoundaryFormData = /** @class */ (function (_super) {
27
- __extends(CustomBoundaryFormData, _super);
28
- function CustomBoundaryFormData() {
29
- return _super.call(this) || this;
30
- }
31
- CustomBoundaryFormData.prototype.getBoundary = function () {
32
- return exports.customBoundary;
33
- };
34
- return CustomBoundaryFormData;
35
- }(form_data_1.default));
36
- exports.CustomBoundaryFormData = CustomBoundaryFormData;
37
- //# sourceMappingURL=CustomBoundaryFormData.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CustomBoundaryFormData.js","sourceRoot":"","sources":["../src/CustomBoundaryFormData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,wDAAiC;AACjC,kDAA4B;AAGjB,QAAA,cAAc,GAAG,8BAA8B,CAAC;AAC3D,gBAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,UAAC,KAAK;IACjC,sBAAc,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AAC1D,CAAC,CAAC,CAAC;AAEH;IAA4C,0CAAQ;IAChD;eACI,iBAAO;IACX,CAAC;IACM,4CAAW,GAAlB;QACI,OAAO,sBAAc,CAAC;IAC1B,CAAC;IACL,6BAAC;AAAD,CAAC,AAPD,CAA4C,mBAAQ,GAOnD;AAPY,wDAAsB"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAgE;AAChE,8BAA8B;AAC9B,mCAAmC;AACnC,mEAAkF;AAClF,uCAEyB;AACzB,yBAAoD;AACpD,iCAAiC;AACjC,gDAA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