html-reporter 9.19.0 → 10.1.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 +5 -0
- package/bin/html-reporter +6 -0
- package/build/lib/adapters/test-result/hermione.d.ts +1 -0
- package/build/lib/adapters/test-result/hermione.js +7 -0
- package/build/lib/adapters/test-result/hermione.js.map +1 -0
- package/build/lib/{test-adapter → adapters/test-result}/index.d.ts +2 -2
- package/build/lib/adapters/test-result/index.js.map +1 -0
- package/build/lib/{test-adapter → adapters/test-result}/playwright.d.ts +3 -3
- package/build/lib/{test-adapter → adapters/test-result}/playwright.js +6 -6
- package/build/lib/adapters/test-result/playwright.js.map +1 -0
- package/build/lib/{test-adapter → adapters/test-result}/reporter.d.ts +2 -2
- package/build/lib/{test-adapter → adapters/test-result}/reporter.js +1 -1
- package/build/lib/adapters/test-result/reporter.js.map +1 -0
- package/build/lib/{test-adapter → adapters/test-result}/sqlite.d.ts +5 -5
- package/build/lib/{test-adapter → adapters/test-result}/sqlite.js +5 -5
- package/build/lib/adapters/test-result/sqlite.js.map +1 -0
- package/build/lib/{test-adapter → adapters/test-result}/testplane.d.ts +6 -6
- package/build/lib/{test-adapter → adapters/test-result}/testplane.js +7 -7
- package/build/lib/adapters/test-result/testplane.js.map +1 -0
- package/build/lib/{test-adapter → adapters/test-result}/transformers/db.d.ts +1 -1
- package/build/lib/{test-adapter → adapters/test-result}/transformers/db.js +1 -1
- package/build/lib/adapters/test-result/transformers/db.js.map +1 -0
- package/build/lib/{test-adapter → adapters/test-result}/transformers/tree.d.ts +1 -1
- package/build/lib/adapters/test-result/transformers/tree.js.map +1 -0
- package/build/lib/{test-adapter → adapters/test-result}/utils/index.d.ts +1 -1
- package/build/lib/{test-adapter → adapters/test-result}/utils/index.js +2 -2
- package/build/lib/adapters/test-result/utils/index.js.map +1 -0
- package/build/lib/adapters/tool/index.d.ts +29 -0
- package/build/lib/adapters/tool/index.js +41 -0
- package/build/lib/adapters/tool/index.js.map +1 -0
- package/build/lib/adapters/tool/testplane/index.d.ts +39 -0
- package/build/lib/adapters/tool/testplane/index.js +110 -0
- package/build/lib/adapters/tool/testplane/index.js.map +1 -0
- package/build/lib/adapters/tool/testplane/runner/all-test-runner.js.map +1 -0
- package/build/lib/{gui/tool-runner → adapters/tool/testplane}/runner/index.d.ts +2 -1
- package/build/lib/adapters/tool/testplane/runner/index.js.map +1 -0
- package/build/lib/{gui/tool-runner → adapters/tool/testplane}/runner/runner.d.ts +0 -4
- package/build/lib/adapters/tool/testplane/runner/runner.js.map +1 -0
- package/build/lib/{gui/tool-runner → adapters/tool/testplane}/runner/specific-test-runner.d.ts +2 -1
- package/build/lib/adapters/tool/testplane/runner/specific-test-runner.js.map +1 -0
- package/build/lib/adapters/tool/testplane/test-results-handler.d.ts +4 -0
- package/build/lib/{gui/tool-runner/report-subscriber.js → adapters/tool/testplane/test-results-handler.js} +10 -10
- package/build/lib/adapters/tool/testplane/test-results-handler.js.map +1 -0
- package/build/lib/adapters/tool/types.d.ts +9 -0
- package/build/lib/adapters/tool/types.js +3 -0
- package/build/lib/adapters/tool/types.js.map +1 -0
- package/build/lib/cli/commands/gui.d.ts +2 -0
- package/build/lib/{cli-commands → cli/commands}/gui.js +8 -9
- package/build/lib/cli/commands/gui.js.map +1 -0
- package/build/lib/cli/commands/merge-reports.d.ts +2 -0
- package/build/lib/{cli-commands → cli/commands}/merge-reports.js +7 -7
- package/build/lib/cli/commands/merge-reports.js.map +1 -0
- package/build/lib/cli/commands/remove-unused-screens/index.d.ts +2 -0
- package/build/lib/{cli-commands → cli/commands}/remove-unused-screens/index.js +18 -17
- package/build/lib/cli/commands/remove-unused-screens/index.js.map +1 -0
- package/build/lib/{cli-commands → cli/commands}/remove-unused-screens/utils.d.ts +3 -3
- package/build/lib/{cli-commands → cli/commands}/remove-unused-screens/utils.js +6 -6
- package/build/lib/cli/commands/remove-unused-screens/utils.js.map +1 -0
- package/build/lib/{cli-commands → cli}/index.d.ts +2 -1
- package/build/lib/cli/index.js +67 -0
- package/build/lib/cli/index.js.map +1 -0
- package/build/lib/common-utils.d.ts +1 -1
- package/build/lib/db-utils/server.d.ts +1 -1
- package/build/lib/gui/api/index.d.ts +4 -8
- package/build/lib/gui/api/index.js +10 -7
- package/build/lib/gui/api/index.js.map +1 -1
- package/build/lib/gui/app.d.ts +4 -8
- package/build/lib/gui/app.js +4 -4
- package/build/lib/gui/app.js.map +1 -1
- package/build/lib/gui/index.d.ts +6 -11
- package/build/lib/gui/index.js +1 -1
- package/build/lib/gui/index.js.map +1 -1
- package/build/lib/gui/server.d.ts +1 -1
- package/build/lib/gui/server.js +18 -10
- package/build/lib/gui/server.js.map +1 -1
- package/build/lib/gui/tool-runner/index.d.ts +11 -21
- package/build/lib/gui/tool-runner/index.js +35 -52
- package/build/lib/gui/tool-runner/index.js.map +1 -1
- package/build/lib/images-info-saver.d.ts +1 -1
- package/build/lib/images-info-saver.js +1 -1
- package/build/lib/images-info-saver.js.map +1 -1
- package/build/lib/merge-reports/index.d.ts +1 -1
- package/build/lib/merge-reports/index.js +4 -3
- package/build/lib/merge-reports/index.js.map +1 -1
- package/build/lib/report-builder/gui.d.ts +1 -1
- package/build/lib/report-builder/gui.js +1 -1
- package/build/lib/report-builder/gui.js.map +1 -1
- package/build/lib/report-builder/static.d.ts +1 -1
- package/build/lib/report-builder/static.js +1 -1
- package/build/lib/report-builder/static.js.map +1 -1
- package/build/lib/reporter-helpers.d.ts +1 -1
- package/build/lib/reporter-helpers.js +1 -1
- package/build/lib/reporter-helpers.js.map +1 -1
- package/build/lib/server-utils.d.ts +1 -9
- package/build/lib/server-utils.js +3 -17
- package/build/lib/server-utils.js.map +1 -1
- package/build/lib/sqlite-client.d.ts +2 -2
- package/build/lib/sqlite-client.js +1 -1
- package/build/lib/sqlite-client.js.map +1 -1
- package/build/lib/static/gui.min.css +1 -1
- package/build/lib/static/gui.min.js +1 -1
- package/build/lib/static/report.min.css +1 -1
- package/build/lib/static/report.min.js +1 -1
- package/build/lib/test-attempt-manager.d.ts +1 -1
- package/build/lib/tests-tree-builder/base.d.ts +2 -2
- package/build/lib/tests-tree-builder/base.js +1 -1
- package/build/lib/tests-tree-builder/base.js.map +1 -1
- package/build/lib/tests-tree-builder/static.d.ts +1 -1
- package/build/lib/tests-tree-builder/static.js +2 -2
- package/build/lib/tests-tree-builder/static.js.map +1 -1
- package/build/package.json +8 -5
- package/build/playwright.js +4 -3
- package/build/playwright.js.map +1 -1
- package/build/testplane.js +8 -8
- package/build/testplane.js.map +1 -1
- package/package.json +8 -5
- package/build/lib/cli-commands/gui.d.ts +0 -2
- package/build/lib/cli-commands/gui.js.map +0 -1
- package/build/lib/cli-commands/index.js +0 -9
- package/build/lib/cli-commands/index.js.map +0 -1
- package/build/lib/cli-commands/merge-reports.d.ts +0 -2
- package/build/lib/cli-commands/merge-reports.js.map +0 -1
- package/build/lib/cli-commands/remove-unused-screens/index.d.ts +0 -2
- package/build/lib/cli-commands/remove-unused-screens/index.js.map +0 -1
- package/build/lib/cli-commands/remove-unused-screens/utils.js.map +0 -1
- package/build/lib/gui/tool-runner/report-subscriber.d.ts +0 -4
- package/build/lib/gui/tool-runner/report-subscriber.js.map +0 -1
- package/build/lib/gui/tool-runner/runner/all-test-runner.js.map +0 -1
- package/build/lib/gui/tool-runner/runner/index.js.map +0 -1
- package/build/lib/gui/tool-runner/runner/runner.js.map +0 -1
- package/build/lib/gui/tool-runner/runner/specific-test-runner.js.map +0 -1
- package/build/lib/test-adapter/hermione.d.ts +0 -1
- package/build/lib/test-adapter/hermione.js +0 -7
- package/build/lib/test-adapter/hermione.js.map +0 -1
- package/build/lib/test-adapter/index.js.map +0 -1
- package/build/lib/test-adapter/playwright.js.map +0 -1
- package/build/lib/test-adapter/reporter.js.map +0 -1
- package/build/lib/test-adapter/sqlite.js.map +0 -1
- package/build/lib/test-adapter/testplane.js.map +0 -1
- package/build/lib/test-adapter/transformers/db.js.map +0 -1
- package/build/lib/test-adapter/transformers/tree.js.map +0 -1
- package/build/lib/test-adapter/utils/index.js.map +0 -1
- /package/build/lib/{test-adapter → adapters/test-result}/index.js +0 -0
- /package/build/lib/{test-adapter → adapters/test-result}/transformers/tree.js +0 -0
- /package/build/lib/{gui/tool-runner → adapters/tool/testplane}/runner/all-test-runner.d.ts +0 -0
- /package/build/lib/{gui/tool-runner → adapters/tool/testplane}/runner/all-test-runner.js +0 -0
- /package/build/lib/{gui/tool-runner → adapters/tool/testplane}/runner/index.js +0 -0
- /package/build/lib/{gui/tool-runner → adapters/tool/testplane}/runner/runner.js +0 -0
- /package/build/lib/{gui/tool-runner → adapters/tool/testplane}/runner/specific-test-runner.js +0 -0
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# html-reporter
|
|
2
2
|
|
|
3
|
+
<a href="https://www.npmjs.com/package/html-reporter"><img src="https://img.shields.io/npm/dt/html-reporter.svg" alt="Total Downloads"></a>
|
|
4
|
+
<a href="https://github.com/gemini-testing/html-reporter/releases"><img src="https://img.shields.io/npm/v/html-reporter.svg" alt="Latest Release"></a>
|
|
5
|
+
<a href="https://github.com/gemini-testing/html-reporter/blob/master/LICENSE"><img src="https://img.shields.io/npm/l/html-reporter.svg" alt="License"></a>
|
|
6
|
+
<a href="https://t.me/testplane"><img src="https://img.shields.io/badge/community-chat-blue?logo=telegram" alt="Community Chat"></a>
|
|
7
|
+
|
|
3
8
|
Use the `html-reporter` plugin to get an html-report on the tests run.
|
|
4
9
|
|
|
5
10
|
See full documentation in various languages here:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TestplaneTestResultAdapter as HermioneTestResultAdapter, TestplaneTestResultAdapterOptions as HermioneTestResultAdapterOptions, getStatus } from './testplane';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getStatus = exports.HermioneTestResultAdapter = void 0;
|
|
4
|
+
var testplane_1 = require("./testplane");
|
|
5
|
+
Object.defineProperty(exports, "HermioneTestResultAdapter", { enumerable: true, get: function () { return testplane_1.TestplaneTestResultAdapter; } });
|
|
6
|
+
Object.defineProperty(exports, "getStatus", { enumerable: true, get: function () { return testplane_1.getStatus; } });
|
|
7
|
+
//# sourceMappingURL=hermione.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hermione.js","sourceRoot":"","sources":["../../../../lib/adapters/test-result/hermione.ts"],"names":[],"mappings":";;;AAAA,yCAIqB;AAHjB,sHAAA,0BAA0B,OAA6B;AAEvD,sGAAA,SAAS,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TestStatus } from '
|
|
2
|
-
import { ErrorDetails, ImageBase64, ImageFile, ImageInfoFull, TestError } from '
|
|
1
|
+
import { TestStatus } from '../../constants';
|
|
2
|
+
import { ErrorDetails, ImageBase64, ImageFile, ImageInfoFull, TestError } from '../../types';
|
|
3
3
|
export interface ReporterTestResult {
|
|
4
4
|
readonly attempt: number;
|
|
5
5
|
readonly browserId: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/adapters/test-result/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TestCase as PlaywrightTestCase, TestResult as PlaywrightTestResult } from '@playwright/test/reporter';
|
|
2
2
|
import { ReporterTestResult } from './index';
|
|
3
|
-
import { TestStatus } from '
|
|
4
|
-
import { ErrorDetails, ImageFile, ImageInfoFull, TestError } from '
|
|
3
|
+
import { TestStatus } from '../../constants';
|
|
4
|
+
import { ErrorDetails, ImageFile, ImageInfoFull, TestError } from '../../types';
|
|
5
5
|
import type { CoordBounds } from 'looks-same';
|
|
6
6
|
export type PlaywrightAttachment = PlaywrightTestResult['attachments'][number];
|
|
7
7
|
type ExtendedError<T> = TestError & {
|
|
@@ -33,7 +33,7 @@ export declare const DEFAULT_DIFF_OPTIONS: {
|
|
|
33
33
|
diffColor: string;
|
|
34
34
|
};
|
|
35
35
|
export declare const getStatus: (result: PlaywrightTestResult) => TestStatus;
|
|
36
|
-
export declare class
|
|
36
|
+
export declare class PlaywrightTestResultAdapter implements ReporterTestResult {
|
|
37
37
|
private readonly _testCase;
|
|
38
38
|
private readonly _testResult;
|
|
39
39
|
private _attempt;
|
|
@@ -3,14 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.PlaywrightTestResultAdapter = exports.getStatus = exports.DEFAULT_DIFF_OPTIONS = exports.ImageTitleEnding = exports.PwtTestStatus = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
const image_size_1 = __importDefault(require("image-size"));
|
|
9
9
|
const lodash_1 = __importDefault(require("lodash"));
|
|
10
10
|
const strip_ansi_1 = __importDefault(require("strip-ansi"));
|
|
11
|
-
const common_utils_1 = require("
|
|
12
|
-
const constants_1 = require("
|
|
13
|
-
const errors_1 = require("
|
|
11
|
+
const common_utils_1 = require("../../common-utils");
|
|
12
|
+
const constants_1 = require("../../constants");
|
|
13
|
+
const errors_1 = require("../../errors");
|
|
14
14
|
var PwtTestStatus;
|
|
15
15
|
(function (PwtTestStatus) {
|
|
16
16
|
PwtTestStatus["PASSED"] = "passed";
|
|
@@ -85,7 +85,7 @@ const getImageData = (attachment) => {
|
|
|
85
85
|
size: lodash_1.default.pick((0, image_size_1.default)(attachment.path), ['height', 'width'])
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
class
|
|
88
|
+
class PlaywrightTestResultAdapter {
|
|
89
89
|
constructor(testCase, testResult, attempt) {
|
|
90
90
|
this._testCase = testCase;
|
|
91
91
|
this._testResult = testResult;
|
|
@@ -230,5 +230,5 @@ class PlaywrightTestAdapter {
|
|
|
230
230
|
return lodash_1.default.groupBy(imageAttachments, a => a.name.replace(ANY_IMAGE_ENDING_REGEXP, ''));
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
exports.
|
|
233
|
+
exports.PlaywrightTestResultAdapter = PlaywrightTestResultAdapter;
|
|
234
234
|
//# sourceMappingURL=playwright.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"playwright.js","sourceRoot":"","sources":["../../../../lib/adapters/test-result/playwright.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,4DAAgC;AAChC,oDAAuB;AACvB,4DAAmC;AAGnC,qDAA8F;AAC9F,+CAAsF;AACtF,yCAAuC;AAoBvC,IAAY,aAMX;AAND,WAAY,aAAa;IACrB,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,uCAAsB,CAAA;IACtB,4CAA2B,CAAA;IAC3B,oCAAmB,CAAA;AACvB,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IACxB,8CAA0B,CAAA;IAC1B,0CAAsB,CAAA;IACtB,sCAAkB,CAAA;IAClB,8CAA0B,CAAA;AAC9B,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B;AAED,MAAM,uBAAuB,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAErG,QAAA,oBAAoB,GAAG;IAChC,SAAS,EAAE,SAAS;CACQ,CAAC;AAE1B,MAAM,SAAS,GAAG,CAAC,MAA4B,EAAc,EAAE;IAClE,IAAI,MAAM,CAAC,MAAM,KAAK,aAAa,CAAC,MAAM,EAAE;QACxC,OAAO,sBAAU,CAAC,OAAO,CAAC;KAC7B;IAED,IACI,CAAC,aAAa,CAAC,MAAM,EAAE,a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AC,EAAE,CAAC,CAAC,CAAC,WAAW,KAAK,WAAW,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAEhF,OAAO,gBAAC,CAAC,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC,CAAC;IACzF,CAAC;CACJ;AArLD,kEAqLC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TestStatus } from '
|
|
2
|
-
import { TestError, ErrorDetails, ImageInfoFull, ImageBase64, ImageFile } from '
|
|
1
|
+
import { TestStatus } from '../../constants';
|
|
2
|
+
import { TestError, ErrorDetails, ImageInfoFull, ImageBase64, ImageFile } from '../../types';
|
|
3
3
|
import { ReporterTestResult } from './index';
|
|
4
4
|
export declare class ReporterTestAdapter implements ReporterTestResult {
|
|
5
5
|
private _testResult;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ReporterTestAdapter = void 0;
|
|
7
7
|
const lodash_1 = __importDefault(require("lodash"));
|
|
8
8
|
const utils_1 = require("./utils");
|
|
9
|
-
const common_utils_1 = require("
|
|
9
|
+
const common_utils_1 = require("../../common-utils");
|
|
10
10
|
// This class is primarily useful when cloning ReporterTestResult.
|
|
11
11
|
// It allows to override some properties while keeping computable
|
|
12
12
|
// properties valid, e.g. id
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reporter.js","sourceRoot":"","sources":["../../../../lib/adapters/test-result/reporter.ts"],"names":[],"mappings":";;;;;;AAGA,oDAAuB;AACvB,mCAA4C;AAC5C,qDAA4D;AAE5D,kEAAkE;AAClE,iEAAiE;AACjE,4BAA4B;AAE5B,MAAa,mBAAmB;IAI5B,YAAY,UAA8B;QACtC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC;QAC9B,IAAI,CAAC,aAA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AAU;QACV,OAAO,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC;IAClC,CAAC;IAED,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC;IACtC,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC;IACvC,CAAC;IAED,IAAI,KAAK;QACL,OAAO,EAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAW,EAAC,CAAC;IAClD,CAAC;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;IACnC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC;IACrC,CAAC;IAED,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC;IACtC,CAAC;IAED,IAAI,GAAG;QACH,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC;IAChC,CAAC;CACJ;AAlGD,kDAkGC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { TestStatus } from '
|
|
2
|
-
import { AssertViewResult, TestError, ErrorDetails, ImageInfoFull, ImageBase64, ImageFile, RawSuitesRow } from '
|
|
1
|
+
import { TestStatus } from '../../constants';
|
|
2
|
+
import { AssertViewResult, TestError, ErrorDetails, ImageInfoFull, ImageBase64, ImageFile, RawSuitesRow } from '../../types';
|
|
3
3
|
import { ReporterTestResult } from './index';
|
|
4
|
-
interface
|
|
4
|
+
interface SqliteTestResultAdapterOptions {
|
|
5
5
|
titleDelimiter: string;
|
|
6
6
|
}
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class SqliteTestResultAdapter implements ReporterTestResult {
|
|
8
8
|
private _testResult;
|
|
9
9
|
private _parsedTestResult;
|
|
10
10
|
private _titleDelimiter;
|
|
11
|
-
constructor(testResult: RawSuitesRow, attempt: number, options:
|
|
11
|
+
constructor(testResult: RawSuitesRow, attempt: number, options: SqliteTestResultAdapterOptions);
|
|
12
12
|
get assertViewResults(): AssertViewResult[];
|
|
13
13
|
get attempt(): number;
|
|
14
14
|
get browserId(): string;
|
|
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.SqliteTestResultAdapter = void 0;
|
|
7
7
|
const lodash_1 = __importDefault(require("lodash"));
|
|
8
|
-
const constants_1 = require("
|
|
9
|
-
const common_utils_1 = require("
|
|
8
|
+
const constants_1 = require("../../constants");
|
|
9
|
+
const common_utils_1 = require("../../common-utils");
|
|
10
10
|
const tryParseJson = (json) => {
|
|
11
11
|
try {
|
|
12
12
|
return JSON.parse(json);
|
|
@@ -15,7 +15,7 @@ const tryParseJson = (json) => {
|
|
|
15
15
|
return undefined;
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
class
|
|
18
|
+
class SqliteTestResultAdapter {
|
|
19
19
|
constructor(testResult, attempt, options) {
|
|
20
20
|
this._testResult = testResult;
|
|
21
21
|
this._parsedTestResult = { attempt };
|
|
@@ -114,5 +114,5 @@ class SqliteTestAdapter {
|
|
|
114
114
|
return this._testResult[constants_1.DB_COLUMN_INDEXES.suiteUrl];
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
exports.
|
|
117
|
+
exports.SqliteTestResultAdapter = SqliteTestResultAdapter;
|
|
118
118
|
//# sourceMappingURL=sqlite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite.js","sourceRoot":"","sources":["../../../../lib/adapters/test-result/sqlite.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,+CAA8D;AAY9D,qDAA+C;AAE/C,MAAM,YAAY,GAAG,CAAC,IAAY,EAAuB,EAAE;IACvD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C,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,EAAE;YAC5C,IAAI,CAAC,iBAAiB,CAAC,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,6BAAiB,CAAC,SAAS,CAAC,CAAa,CAAC;SAC7G;QAED,OAAO,IAAI,CAAC,iBAAiB,CAAC,QAAoB,CAAC;IACvD,CAAC;IAED,IAAI,SAAS;QACT,OAAO,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,6BAAiB,CAAC,SAAS,CAAC,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,GAAG;QACH,OAAO,IAAI,CAAC,WAAW,CAAC,6BAAiB,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;CACJ;AApID,0DAoIC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type Testplane from 'testplane';
|
|
2
2
|
import type { Test as TestplaneTest } from 'testplane';
|
|
3
3
|
import { ValueOf } from 'type-fest';
|
|
4
|
-
import { TestStatus } from '
|
|
5
|
-
import { ErrorDetails, TestplaneTestResult, ImageBase64, ImageInfoFull, TestError } from '
|
|
4
|
+
import { TestStatus } from '../../constants';
|
|
5
|
+
import { ErrorDetails, TestplaneTestResult, ImageBase64, ImageInfoFull, TestError } from '../../types';
|
|
6
6
|
import { ReporterTestResult } from './index';
|
|
7
7
|
export declare const getStatus: (eventName: ValueOf<Testplane['events']>, events: Testplane['events'], testResult: TestplaneTestResult) => TestStatus;
|
|
8
|
-
export interface
|
|
8
|
+
export interface TestplaneTestResultAdapterOptions {
|
|
9
9
|
attempt: number;
|
|
10
10
|
status: TestStatus;
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class TestplaneTestResultAdapter implements ReporterTestResult {
|
|
13
13
|
private _testResult;
|
|
14
14
|
private _errorDetails;
|
|
15
15
|
private _timestamp;
|
|
16
16
|
private _attempt;
|
|
17
17
|
private _status;
|
|
18
|
-
static create<T extends
|
|
19
|
-
constructor(testResult: TestplaneTest | TestplaneTestResult, { attempt, status }:
|
|
18
|
+
static create<T extends TestplaneTestResultAdapter>(this: new (testResult: TestplaneTestResult, options: TestplaneTestResultAdapterOptions) => T, testResult: TestplaneTestResult, options: TestplaneTestResultAdapterOptions): T;
|
|
19
|
+
constructor(testResult: TestplaneTest | TestplaneTestResult, { attempt, status }: TestplaneTestResultAdapterOptions);
|
|
20
20
|
get fullName(): string;
|
|
21
21
|
get skipReason(): string;
|
|
22
22
|
get status(): TestStatus;
|
|
@@ -3,13 +3,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.TestplaneTestResultAdapter = exports.getStatus = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
const lodash_1 = __importDefault(require("lodash"));
|
|
9
|
-
const history_utils_1 = require("
|
|
10
|
-
const constants_1 = require("
|
|
11
|
-
const common_utils_1 = require("
|
|
12
|
-
const plugin_utils_1 = require("
|
|
9
|
+
const history_utils_1 = require("../../history-utils");
|
|
10
|
+
const constants_1 = require("../../constants");
|
|
11
|
+
const common_utils_1 = require("../../common-utils");
|
|
12
|
+
const plugin_utils_1 = require("../../plugin-utils");
|
|
13
13
|
const utils_1 = require("./utils");
|
|
14
14
|
const getStatus = (eventName, events, testResult) => {
|
|
15
15
|
if (eventName === events.TEST_PASS) {
|
|
@@ -33,7 +33,7 @@ const getSkipComment = (suite) => {
|
|
|
33
33
|
const wrapSkipComment = (skipComment) => {
|
|
34
34
|
return skipComment ? (0, common_utils_1.wrapLinkByTag)(skipComment) : 'Unknown reason';
|
|
35
35
|
};
|
|
36
|
-
class
|
|
36
|
+
class TestplaneTestResultAdapter {
|
|
37
37
|
static create(testResult, options) {
|
|
38
38
|
return new this(testResult, options);
|
|
39
39
|
}
|
|
@@ -174,5 +174,5 @@ class TestplaneTestAdapter {
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
exports.
|
|
177
|
+
exports.TestplaneTestResultAdapter = TestplaneTestResultAdapter;
|
|
178
178
|
//# sourceMappingURL=testplane.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testplane.js","sourceRoot":"","sources":["../../../../lib/adapters/test-result/testplane.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,oDAAuB;AAKvB,uDAAuD;AACvD,+CAA8F;AAC9F,qDAAiH;AAiBjH,qDAAgD;AAChD,mCAA4C;AAErC,MAAM,SAAS,GAAG,CAAC,SAAuC,EAAE,MAA2B,EAAE,UAA+B,EAAc,EAAE;IAC3I,IAAI,SAAS,KAAK,MAAM,CAAC,SAAS,EAAE;QAChC,OAAO,sBAAU,CAAC,OAAO,CAAC;KAC7B;SAAM,IAAI,SAAS,KAAK,MAAM,CAAC,YAAY,EAAE;QAC1C,OAAO,sBAAU,CAAC,OAAO,CAAC;KAC7B;SAAM,IAAI,SAAS,KAAK,MAAM,CAAC,KAAK,IAAI,SAAS,KAAK,MAAM,CAAC,SAAS,EAAE;QACrE,OAAO,IAAA,8BAAe,EAAC,UAAU,CAAC,iBAAoC,CAAC,CAAC,CAAC,CAAC,sBAAU,CAAC,IAAI,CAAC,CAAC,CAAC,sBAAU,CAAC,KAAK,CAAC;KAChH;SAAM,IAAI,SAAS,KAAK,MAAM,CAAC,UAAU,EAAE;QACxC,OAAO,sBAAU,CAAC,OAAO,CAAC;KAC7B;IACD,OAAO,sBAAU,CAAC,IAAI,CAAC;AAC3B,CAAC,CAAC;AAXW,QAAA,SAAS,aAWpB;AAEF,MAAM,cAAc,GAAG,CAAC,KAA2C,EAA6B,EAAE;IAC9F,OAAO,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,MAAM,IAAI,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAC5E,CAAC,CAAC;AAE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AE,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;IAED,IAAI,GAAG;QACH,OAAQ,IAAI,CAAC,WAAmC,CAAC,IAAI,EAAE,GAAyB,CAAC;IACrF,CAAC;IAED,IAAI,YAAY;QACZ,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,IAAI,SAAS,CAAC,SAAS;QACnB,IAAI,CAAC,gBAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;YAC9B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;SAC/B;IACL,CAAC;CACJ;AA/KD,gEA+KC"}
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.DbTestResultTransformer = void 0;
|
|
7
|
-
const common_utils_1 = require("
|
|
7
|
+
const common_utils_1 = require("../../../common-utils");
|
|
8
8
|
const lodash_1 = __importDefault(require("lodash"));
|
|
9
9
|
class DbTestResultTransformer {
|
|
10
10
|
constructor(options) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db.js","sourceRoot":"","sources":["../../../../../lib/adapters/test-result/transformers/db.ts"],"names":[],"mappings":";;;;;;AAEA,wDAA+E;AAC/E,oDAAuB;AAMvB,MAAa,uBAAuB;IAGhC,YAAY,OAAgB;QACxB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5B,CAAC;IAED,SAAS,CAAC,UAA8B;QACpC,MAAM,QAAQ,GAAG,IAAA,6BAAc,EAAC,UAAU,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAExE,MAAM,YAAY,GAAG,gBAAC,CAAC,KAAK,CAAC,gBAAC,CAAC,SAAS,CAAC,UAAU,CAAC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MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAEvD,OAAO;YACH,GAAG,gBAAC,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC;YAC/B,OAAO,EAAE,UAAU,CAAC,OAAO;YAC3B,YAAY,EAAE,IAAA,2BAAmB,EAAC,UAAU,CAAC;SAChD,CAAC;IACN,CAAC;CACJ;AAhBD,8DAgBC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReporterTestResult } from '../index';
|
|
2
|
-
import { ErrorDetails, ImageInfoFull } from '
|
|
2
|
+
import { ErrorDetails, ImageInfoFull } from '../../../types';
|
|
3
3
|
export declare const copyAndUpdate: (original: ReporterTestResult, updates: Partial<ReporterTestResult>) => ReporterTestResult;
|
|
4
4
|
export declare const extractErrorDetails: (testResult: ReporterTestResult) => ErrorDetails | null;
|
|
5
5
|
export declare const removeBufferFromImagesInfo: (imagesInfo: ImageInfoFull) => ImageInfoFull;
|
|
@@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.removeBufferFromImagesInfo = exports.extractErrorDetails = exports.copyAndUpdate = void 0;
|
|
7
7
|
const lodash_1 = __importDefault(require("lodash"));
|
|
8
|
-
const constants_1 = require("
|
|
8
|
+
const constants_1 = require("../../../constants");
|
|
9
9
|
const reporter_1 = require("../reporter");
|
|
10
|
-
const common_utils_1 = require("
|
|
10
|
+
const common_utils_1 = require("../../../common-utils");
|
|
11
11
|
const copyAndUpdate = (original, updates) => {
|
|
12
12
|
const keys = [
|
|
13
13
|
'attempt',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/adapters/test-result/utils/index.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AAIvB,kDAAsD;AACtD,0CAAgD;AAChD,wDAA4E;AAErE,MA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C,CAAC;IAE1C,IAAI,IAAA,gCAAiB,EAAC,OAAO,CAAC,EAAE;QAC3B,aAA+B,CAAC,OAAO,GAAG,EAAC,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAC,CAAC;KACpF;IAED,OAAO,aAAa,CAAC;AACzB,CAAC,CAAC;AATW,QAAA,0BAA0B,8BASrC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Config, TestCollection } from 'testplane';
|
|
2
|
+
import type { CommanderStatic } from '@gemini-testing/commander';
|
|
3
|
+
import { GuiApi } from '../../gui/api';
|
|
4
|
+
import { EventSource } from '../../gui/event-source';
|
|
5
|
+
import { GuiReportBuilder } from '../../report-builder/gui';
|
|
6
|
+
import { ToolName } from '../../constants';
|
|
7
|
+
import type { ReporterConfig, ImageFile } from '../../types';
|
|
8
|
+
import type { TestSpec } from './types';
|
|
9
|
+
export interface ToolAdapterOptionsFromCli {
|
|
10
|
+
toolName: ToolName;
|
|
11
|
+
configPath?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UpdateReferenceOpts {
|
|
14
|
+
refImg: ImageFile;
|
|
15
|
+
state: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ToolAdapter {
|
|
18
|
+
readonly toolName: ToolName;
|
|
19
|
+
readonly config: Config;
|
|
20
|
+
readonly reporterConfig: ReporterConfig;
|
|
21
|
+
readonly guiApi?: GuiApi;
|
|
22
|
+
initGuiApi(): void;
|
|
23
|
+
readTests(paths: string[], cliTool: CommanderStatic): Promise<TestCollection>;
|
|
24
|
+
run(testCollection: TestCollection, tests: TestSpec[], cliTool: CommanderStatic): Promise<boolean>;
|
|
25
|
+
updateReference(opts: UpdateReferenceOpts): void;
|
|
26
|
+
handleTestResults(reportBuilder: GuiReportBuilder, eventSource: EventSource): void;
|
|
27
|
+
halt(err: Error, timeout: number): void;
|
|
28
|
+
}
|
|
29
|
+
export declare const makeToolAdapter: (opts: ToolAdapterOptionsFromCli) => Promise<ToolAdapter>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.makeToolAdapter = void 0;
|
|
27
|
+
const constants_1 = require("../../constants");
|
|
28
|
+
const makeToolAdapter = async (opts) => {
|
|
29
|
+
if (opts.toolName === constants_1.ToolName.Testplane) {
|
|
30
|
+
const { TestplaneToolAdapter } = await Promise.resolve().then(() => __importStar(require('./testplane')));
|
|
31
|
+
return TestplaneToolAdapter.create(opts);
|
|
32
|
+
}
|
|
33
|
+
else if (opts.toolName === constants_1.ToolName.Playwright) {
|
|
34
|
+
throw new Error('Playwright is not supported yet');
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
throw new Error(`Tool adapter with name: "${opts.toolName}" is not supported`);
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.makeToolAdapter = makeToolAdapter;
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/adapters/tool/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,+CAAyC;AA+BlC,MAAM,eAAe,GAAG,KAAK,EAAE,IAA+B,EAAwB,EAAE;IAC3F,IAAI,IAAI,CAAC,QAAQ,KAAK,oBAAQ,CAAC,SAAS,EAAE;QACtC,MAAM,EAAC,oBAAoB,EAAC,GAAG,wDAAa,aAAa,GAAC,CAAC;QAE3D,OAAO,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;KAC5C;SAAM,IAAI,IAAI,CAAC,QAAQ,KAAK,oBAAQ,CAAC,UAAU,EAAE;QAC9C,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;KACtD;SAAM;QACH,MAAM,IAAI,KAAK,CAAC,4BAA4B,IAAI,CAAC,QAAQ,oBAAoB,CAAC,CAAC;KAClF;AACL,CAAC,CAAC;AAVW,QAAA,eAAe,mBAU1B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import Testplane, { type Config, type TestCollection } from 'testplane';
|
|
2
|
+
import type { CommanderStatic } from '@gemini-testing/commander';
|
|
3
|
+
import { GuiApi } from '../../../gui/api';
|
|
4
|
+
import { HtmlReporter } from '../../../plugin-api';
|
|
5
|
+
import { EventSource } from '../../../gui/event-source';
|
|
6
|
+
import { GuiReportBuilder } from '../../../report-builder/gui';
|
|
7
|
+
import { ToolName } from '../../../constants';
|
|
8
|
+
import type { ToolAdapter, ToolAdapterOptionsFromCli, UpdateReferenceOpts } from '../index';
|
|
9
|
+
import type { TestSpec, CustomGuiActionPayload } from '../types';
|
|
10
|
+
import type { ReporterConfig } from '../../../types';
|
|
11
|
+
interface OptionsFromPlugin {
|
|
12
|
+
toolName: ToolName.Testplane;
|
|
13
|
+
tool: Testplane;
|
|
14
|
+
reporterConfig: ReporterConfig;
|
|
15
|
+
}
|
|
16
|
+
type Options = ToolAdapterOptionsFromCli | OptionsFromPlugin;
|
|
17
|
+
export declare class TestplaneToolAdapter implements ToolAdapter {
|
|
18
|
+
private _toolName;
|
|
19
|
+
private _tool;
|
|
20
|
+
private _reporterConfig;
|
|
21
|
+
private _htmlReporter;
|
|
22
|
+
private _guiApi?;
|
|
23
|
+
static create<TestplaneToolAdapter>(this: new (options: Options) => TestplaneToolAdapter, options: Options): TestplaneToolAdapter;
|
|
24
|
+
constructor(opts: Options);
|
|
25
|
+
get toolName(): ToolName;
|
|
26
|
+
get config(): Config;
|
|
27
|
+
get reporterConfig(): ReporterConfig;
|
|
28
|
+
get htmlReporter(): HtmlReporter;
|
|
29
|
+
get guiApi(): GuiApi | undefined;
|
|
30
|
+
initGuiApi(): void;
|
|
31
|
+
readTests(paths: string[], cliTool: CommanderStatic): Promise<TestCollection>;
|
|
32
|
+
run(testCollection: TestCollection, tests: TestSpec[] | undefined, cliTool: CommanderStatic): Promise<boolean>;
|
|
33
|
+
updateReference(opts: UpdateReferenceOpts): void;
|
|
34
|
+
handleTestResults(reportBuilder: GuiReportBuilder, eventSource: EventSource): void;
|
|
35
|
+
halt(err: Error, timeout: number): void;
|
|
36
|
+
initGuiHandler(): Promise<void>;
|
|
37
|
+
runCustomGuiAction(payload: CustomGuiActionPayload): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
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.TestplaneToolAdapter = void 0;
|
|
7
|
+
const lodash_1 = __importDefault(require("lodash"));
|
|
8
|
+
const testplane_1 = __importDefault(require("testplane"));
|
|
9
|
+
const api_1 = require("../../../gui/api");
|
|
10
|
+
const config_1 = require("../../../config");
|
|
11
|
+
const plugin_api_1 = require("../../../plugin-api");
|
|
12
|
+
const runner_1 = require("./runner");
|
|
13
|
+
const test_results_handler_1 = require("./test-results-handler");
|
|
14
|
+
const constants_1 = require("../../../constants");
|
|
15
|
+
class TestplaneToolAdapter {
|
|
16
|
+
static create(options) {
|
|
17
|
+
return new this(options);
|
|
18
|
+
}
|
|
19
|
+
constructor(opts) {
|
|
20
|
+
if ('tool' in opts) {
|
|
21
|
+
this._tool = opts.tool;
|
|
22
|
+
this._reporterConfig = opts.reporterConfig;
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
// in order to not use static report with gui simultaneously
|
|
26
|
+
process.env['html_reporter_enabled'] = false.toString();
|
|
27
|
+
this._tool = testplane_1.default.create(opts.configPath);
|
|
28
|
+
const pluginOpts = getPluginOptions(this._tool.config);
|
|
29
|
+
this._reporterConfig = (0, config_1.parseConfig)(pluginOpts);
|
|
30
|
+
}
|
|
31
|
+
this._toolName = opts.toolName;
|
|
32
|
+
this._htmlReporter = plugin_api_1.HtmlReporter.create(this._reporterConfig, { toolName: constants_1.ToolName.Testplane });
|
|
33
|
+
// in order to be able to use it from other plugins as an API
|
|
34
|
+
this._tool.htmlReporter = this._htmlReporter;
|
|
35
|
+
}
|
|
36
|
+
get toolName() {
|
|
37
|
+
return this._toolName;
|
|
38
|
+
}
|
|
39
|
+
get config() {
|
|
40
|
+
return this._tool.config;
|
|
41
|
+
}
|
|
42
|
+
get reporterConfig() {
|
|
43
|
+
return this._reporterConfig;
|
|
44
|
+
}
|
|
45
|
+
get htmlReporter() {
|
|
46
|
+
return this._htmlReporter;
|
|
47
|
+
}
|
|
48
|
+
get guiApi() {
|
|
49
|
+
return this._guiApi;
|
|
50
|
+
}
|
|
51
|
+
initGuiApi() {
|
|
52
|
+
this._guiApi = api_1.GuiApi.create();
|
|
53
|
+
// in order to be able to use it from other plugins as an API
|
|
54
|
+
this._tool.gui = this._guiApi.gui;
|
|
55
|
+
}
|
|
56
|
+
async readTests(paths, cliTool) {
|
|
57
|
+
const { grep, set: sets, browser: browsers } = cliTool;
|
|
58
|
+
const replMode = getReplModeOption(cliTool);
|
|
59
|
+
return this._tool.readTests(paths, { grep, sets, browsers, replMode });
|
|
60
|
+
}
|
|
61
|
+
async run(testCollection, tests = [], cliTool) {
|
|
62
|
+
const { grep, set: sets, browser: browsers, devtools = false } = cliTool;
|
|
63
|
+
const replMode = getReplModeOption(cliTool);
|
|
64
|
+
const runner = (0, runner_1.createTestRunner)(testCollection, tests);
|
|
65
|
+
return runner.run((collection) => this._tool.run(collection, { grep, sets, browsers, devtools, replMode }));
|
|
66
|
+
}
|
|
67
|
+
updateReference(opts) {
|
|
68
|
+
this._tool.emit(this._tool.events.UPDATE_REFERENCE, opts);
|
|
69
|
+
}
|
|
70
|
+
handleTestResults(reportBuilder, eventSource) {
|
|
71
|
+
(0, test_results_handler_1.handleTestResults)(this._tool, reportBuilder, eventSource);
|
|
72
|
+
}
|
|
73
|
+
halt(err, timeout) {
|
|
74
|
+
this._tool.halt(err, timeout);
|
|
75
|
+
}
|
|
76
|
+
async initGuiHandler() {
|
|
77
|
+
const { customGui } = this._reporterConfig;
|
|
78
|
+
await Promise.all((0, lodash_1.default)(customGui)
|
|
79
|
+
.flatMap(lodash_1.default.identity)
|
|
80
|
+
.map((ctx) => ctx.initialize?.({ testplane: this._tool, hermione: this._tool, ctx }))
|
|
81
|
+
.value());
|
|
82
|
+
}
|
|
83
|
+
async runCustomGuiAction(payload) {
|
|
84
|
+
const { customGui } = this._reporterConfig;
|
|
85
|
+
const { sectionName, groupIndex, controlIndex } = payload;
|
|
86
|
+
const ctx = customGui[sectionName][groupIndex];
|
|
87
|
+
const control = ctx.controls[controlIndex];
|
|
88
|
+
await ctx.action({ testplane: this._tool, hermione: this._tool, control, ctx });
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.TestplaneToolAdapter = TestplaneToolAdapter;
|
|
92
|
+
function getPluginOptions(config) {
|
|
93
|
+
const defaultOpts = {};
|
|
94
|
+
for (const toolName of [constants_1.ToolName.Testplane, 'hermione']) {
|
|
95
|
+
const opts = lodash_1.default.get(config.plugins, `html-reporter/${toolName}`, defaultOpts);
|
|
96
|
+
if (!lodash_1.default.isEmpty(opts)) {
|
|
97
|
+
return opts;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return defaultOpts;
|
|
101
|
+
}
|
|
102
|
+
function getReplModeOption(cliTool) {
|
|
103
|
+
const { repl = false, replBeforeTest = false, replOnFail = false } = cliTool;
|
|
104
|
+
return {
|
|
105
|
+
enabled: repl || replBeforeTest || replOnFail,
|
|
106
|
+
beforeTest: replBeforeTest,
|
|
107
|
+
onFail: replOnFail
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/adapters/tool/testplane/index.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,0DAAsE;AAGtE,0CAAwC;AACxC,4CAA4C;AAC5C,oDAAiD;AAEjD,qCAA0C;AAG1C,iEAAyD;AACzD,kDAA4C;AA0B5C,MAAa,oBAAoB;IAO7B,MAAM,CAAC,MAAM,CAET,OAAgB;QAEhB,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAED,YAAY,IAAa;QACrB,IAAI,MAAM,IAAI,IAAI,EAAE;YAChB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAiC,CAAC;YACpD,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC;SAC9C;aAAM;YACH,4DAA4D;YAC5D,OAAO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WAAW,CAAC;AACvB,CAAC;AAED,SAAS,iBAAiB,CAAC,OAAwB;IAC/C,MAAM,EAAC,IAAI,GAAG,KAAK,EAAE,cAAc,GAAG,KAAK,EAAE,UAAU,GAAG,KAAK,EAAC,GAAG,OAAO,CAAC;IAE3E,OAAO;QACH,OAAO,EAAE,IAAI,IAAI,cAAc,IAAI,UAAU;QAC7C,UAAU,EAAE,cAAc;QAC1B,MAAM,EAAE,UAAU;KACrB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-test-runner.js","sourceRoot":"","sources":["../../../../../../lib/adapters/tool/testplane/runner/all-test-runner.ts"],"names":[],"mappings":";;;AACA,qCAAoC;AAEpC,MAAa,aAAc,SAAQ,mBAAU;IAChC,GAAG,CAAI,UAAiD;QAC7D,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC;QAE7B,OAAO,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IACjC,CAAC;CACJ;AAND,sCAMC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { TestCollection } from 'testplane';
|
|
2
|
-
import { TestRunner
|
|
2
|
+
import type { TestRunner } from './runner';
|
|
3
|
+
import type { TestSpec } from '../../types';
|
|
3
4
|
export declare const createTestRunner: (collection: TestCollection, tests: TestSpec[]) => TestRunner;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../lib/adapters/tool/testplane/runner/index.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AAGvB,uDAAgD;AAChD,iEAA0D;AAInD,MAAM,gBAAgB,GAAG,CAAC,UAA0B,EAAE,KAAiB,EAAc,EAAE;IAC1F,OAAO,gBAAC,CAAC,OAAO,CAAC,KAAK,CAAC;QACnB,CAAC,CAAC,IAAI,+BAAa,CAAC,UAAU,CAAC;QAC/B,CAAC,CAAC,IAAI,yCAAkB,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC,CAAC;AAJW,QAAA,gBAAgB,oBAI3B"}
|