html-reporter 9.14.0 → 9.16.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/build/hermione.d.ts +4 -2
- package/build/hermione.js +96 -58
- package/build/hermione.js.map +1 -1
- package/build/lib/cache.d.ts +8 -0
- package/build/lib/cache.js +29 -0
- package/build/lib/cache.js.map +1 -0
- package/build/lib/cli-commands/gui.js +1 -1
- package/build/lib/cli-commands/gui.js.map +1 -1
- package/build/lib/cli-commands/merge-reports.js +6 -1
- package/build/lib/cli-commands/merge-reports.js.map +1 -1
- package/build/lib/cli-commands/remove-unused-screens/utils.d.ts +4 -4
- package/build/lib/common-utils.d.ts +19 -10
- package/build/lib/common-utils.js +57 -10
- package/build/lib/common-utils.js.map +1 -1
- package/build/lib/config/custom-gui-asserts.js +24 -4
- package/build/lib/config/custom-gui-asserts.js.map +1 -1
- package/build/lib/constants/database.d.ts +60 -7
- package/build/lib/constants/database.js.map +1 -1
- package/build/lib/constants/errors.d.ts +2 -5
- package/build/lib/constants/errors.js +5 -8
- package/build/lib/constants/errors.js.map +1 -1
- package/build/lib/constants/index.d.ts +1 -0
- package/build/lib/constants/index.js +1 -0
- package/build/lib/constants/index.js.map +1 -1
- package/build/lib/constants/tests.d.ts +3 -0
- package/build/lib/constants/tests.js +4 -1
- package/build/lib/constants/tests.js.map +1 -1
- package/build/lib/db-utils/common.js.map +1 -1
- package/build/lib/db-utils/server.d.ts +3 -3
- package/build/lib/db-utils/server.js +4 -4
- package/build/lib/db-utils/server.js.map +1 -1
- package/build/lib/errors/index.d.ts +6 -6
- package/build/lib/gui/api/facade.d.ts +6 -7
- package/build/lib/gui/api/facade.js +13 -7
- package/build/lib/gui/api/facade.js.map +1 -1
- package/build/lib/gui/api/index.d.ts +16 -8
- package/build/lib/gui/api/index.js +9 -6
- package/build/lib/gui/api/index.js.map +1 -1
- package/build/lib/gui/app.d.ts +27 -62
- package/build/lib/gui/app.js +27 -23
- package/build/lib/gui/app.js.map +1 -1
- package/build/lib/gui/constants/client-events.d.ts +11 -6
- package/build/lib/gui/constants/client-events.js +4 -2
- package/build/lib/gui/constants/client-events.js.map +1 -1
- package/build/lib/gui/constants/custom-gui-control-types.d.ts +2 -2
- package/build/lib/gui/constants/custom-gui-control-types.js +5 -5
- package/build/lib/gui/constants/custom-gui-control-types.js.map +1 -1
- package/build/lib/gui/constants/gui-events.d.ts +7 -2
- package/build/lib/gui/constants/gui-events.js +4 -2
- package/build/lib/gui/constants/gui-events.js.map +1 -1
- package/build/lib/gui/constants/index.d.ts +4 -0
- package/build/lib/gui/constants/index.js +21 -0
- package/build/lib/gui/constants/index.js.map +1 -0
- package/build/lib/gui/constants/server.d.ts +3 -3
- package/build/lib/gui/constants/server.js +6 -6
- package/build/lib/gui/constants/server.js.map +1 -1
- package/build/lib/gui/event-source.d.ts +6 -5
- package/build/lib/gui/event-source.js +11 -5
- package/build/lib/gui/event-source.js.map +1 -1
- package/build/lib/gui/index.d.ts +19 -8
- package/build/lib/gui/index.js +2 -2
- package/build/lib/gui/index.js.map +1 -1
- package/build/lib/gui/routes/plugins.d.ts +3 -2
- package/build/lib/gui/routes/plugins.js +17 -14
- package/build/lib/gui/routes/plugins.js.map +1 -1
- package/build/lib/gui/server.d.ts +3 -8
- package/build/lib/gui/server.js +65 -52
- package/build/lib/gui/server.js.map +1 -1
- package/build/lib/gui/tool-runner/index.d.ts +52 -105
- package/build/lib/gui/tool-runner/index.js +190 -124
- package/build/lib/gui/tool-runner/index.js.map +1 -1
- package/build/lib/gui/tool-runner/report-subscriber.d.ts +4 -2
- package/build/lib/gui/tool-runner/report-subscriber.js +39 -76
- package/build/lib/gui/tool-runner/report-subscriber.js.map +1 -1
- package/build/lib/gui/tool-runner/runner/all-test-runner.d.ts +4 -3
- package/build/lib/gui/tool-runner/runner/all-test-runner.js +7 -4
- package/build/lib/gui/tool-runner/runner/all-test-runner.js.map +1 -1
- package/build/lib/gui/tool-runner/runner/index.d.ts +3 -3
- package/build/lib/gui/tool-runner/runner/index.js +14 -8
- package/build/lib/gui/tool-runner/runner/index.js.map +1 -1
- package/build/lib/gui/tool-runner/runner/runner.d.ts +12 -5
- package/build/lib/gui/tool-runner/runner/runner.js +6 -3
- package/build/lib/gui/tool-runner/runner/runner.js.map +1 -1
- package/build/lib/gui/tool-runner/runner/specific-test-runner.d.ts +7 -6
- package/build/lib/gui/tool-runner/runner/specific-test-runner.js +7 -4
- package/build/lib/gui/tool-runner/runner/specific-test-runner.js.map +1 -1
- package/build/lib/gui/tool-runner/utils.d.ts +6 -7
- package/build/lib/gui/tool-runner/utils.js +48 -38
- package/build/lib/gui/tool-runner/utils.js.map +1 -1
- package/build/lib/history-utils.d.ts +1 -1
- package/build/lib/history-utils.js +6 -6
- package/build/lib/history-utils.js.map +1 -1
- package/build/lib/image-store.d.ts +6 -7
- package/build/lib/image-store.js +5 -4
- package/build/lib/image-store.js.map +1 -1
- package/build/lib/images-info-saver.d.ts +28 -0
- package/build/lib/images-info-saver.js +168 -0
- package/build/lib/images-info-saver.js.map +1 -0
- package/build/lib/local-image-file-saver.d.ts +2 -0
- package/build/lib/{local-images-saver.js → local-image-file-saver.js} +3 -3
- package/build/lib/local-image-file-saver.js.map +1 -0
- package/build/lib/merge-reports/index.d.ts +3 -2
- package/build/lib/merge-reports/index.js +26 -9
- package/build/lib/merge-reports/index.js.map +1 -1
- package/build/lib/plugin-api.d.ts +5 -5
- package/build/lib/plugin-api.js +2 -2
- package/build/lib/plugin-api.js.map +1 -1
- package/build/lib/report-builder/gui.d.ts +39 -86
- package/build/lib/report-builder/gui.js +75 -106
- package/build/lib/report-builder/gui.js.map +1 -1
- package/build/lib/report-builder/static.d.ts +19 -27
- package/build/lib/report-builder/static.js +41 -83
- package/build/lib/report-builder/static.js.map +1 -1
- package/build/lib/reporter-helpers.d.ts +7 -3
- package/build/lib/reporter-helpers.js +83 -28
- package/build/lib/reporter-helpers.js.map +1 -1
- package/build/lib/server-utils.d.ts +16 -13
- package/build/lib/server-utils.js +36 -23
- package/build/lib/server-utils.js.map +1 -1
- package/build/lib/sqlite-client.d.ts +58 -0
- package/build/lib/{sqlite-adapter.js → sqlite-client.js} +32 -62
- package/build/lib/sqlite-client.js.map +1 -0
- package/build/lib/static/gui.html +1 -1
- package/build/lib/static/gui.min.css +2 -1
- package/build/lib/static/gui.min.js +1 -124
- package/build/lib/static/index.html +1 -1
- package/build/lib/static/report.min.css +1 -1
- package/build/lib/static/report.min.js +1 -124
- package/build/lib/test-adapter/hermione.d.ts +7 -14
- package/build/lib/test-adapter/hermione.js +79 -86
- package/build/lib/test-adapter/hermione.js.map +1 -1
- package/build/lib/test-adapter/index.d.ts +8 -10
- package/build/lib/test-adapter/index.js +0 -15
- package/build/lib/test-adapter/index.js.map +1 -1
- package/build/lib/test-adapter/playwright.d.ts +7 -11
- package/build/lib/test-adapter/playwright.js +55 -71
- package/build/lib/test-adapter/playwright.js.map +1 -1
- package/build/lib/test-adapter/reporter.d.ts +31 -0
- package/build/lib/test-adapter/reporter.js +87 -0
- package/build/lib/test-adapter/reporter.js.map +1 -0
- package/build/lib/test-adapter/sqlite.d.ts +37 -0
- package/build/lib/test-adapter/sqlite.js +118 -0
- package/build/lib/test-adapter/sqlite.js.map +1 -0
- package/build/lib/test-adapter/transformers/db.d.ts +11 -0
- package/build/lib/test-adapter/transformers/db.js +40 -0
- package/build/lib/test-adapter/transformers/db.js.map +1 -0
- package/build/lib/test-adapter/transformers/tree.d.ts +11 -0
- package/build/lib/test-adapter/transformers/tree.js +24 -0
- package/build/lib/test-adapter/transformers/tree.js.map +1 -0
- package/build/lib/test-adapter/utils/index.d.ts +5 -0
- package/build/lib/test-adapter/utils/index.js +61 -0
- package/build/lib/test-adapter/utils/index.js.map +1 -0
- package/build/lib/test-attempt-manager.d.ts +13 -0
- package/build/lib/test-attempt-manager.js +39 -0
- package/build/lib/test-attempt-manager.js.map +1 -0
- package/build/lib/tests-tree-builder/base.d.ts +19 -11
- package/build/lib/tests-tree-builder/base.js +10 -9
- package/build/lib/tests-tree-builder/base.js.map +1 -1
- package/build/lib/tests-tree-builder/gui.d.ts +53 -66
- package/build/lib/tests-tree-builder/gui.js +30 -33
- package/build/lib/tests-tree-builder/gui.js.map +1 -1
- package/build/lib/tests-tree-builder/static.d.ts +5 -4
- package/build/lib/tests-tree-builder/static.js +9 -24
- package/build/lib/tests-tree-builder/static.js.map +1 -1
- package/build/lib/types.d.ts +70 -61
- package/build/lib/workers/create-workers.d.ts +1 -0
- package/build/lib/workers/worker.d.ts +2 -2
- package/build/lib/workers/worker.js +2 -2
- package/build/lib/workers/worker.js.map +1 -1
- package/build/package.json +27 -16
- package/build/playwright.d.ts +4 -3
- package/build/playwright.js +30 -23
- package/build/playwright.js.map +1 -1
- package/package.json +27 -16
- package/build/lib/errors/db-not-initialized-error.d.ts +0 -3
- package/build/lib/errors/db-not-initialized-error.js +0 -10
- package/build/lib/errors/db-not-initialized-error.js.map +0 -1
- package/build/lib/image-handler.d.ts +0 -34
- package/build/lib/image-handler.js +0 -273
- package/build/lib/image-handler.js.map +0 -1
- package/build/lib/local-images-saver.d.ts +0 -2
- package/build/lib/local-images-saver.js.map +0 -1
- package/build/lib/plugin-adapter.d.ts +0 -17
- package/build/lib/plugin-adapter.js +0 -86
- package/build/lib/plugin-adapter.js.map +0 -1
- package/build/lib/sqlite-adapter.d.ts +0 -68
- package/build/lib/sqlite-adapter.js.map +0 -1
- package/build/lib/test-adapter/cache/hermione.d.ts +0 -1
- package/build/lib/test-adapter/cache/hermione.js +0 -5
- package/build/lib/test-adapter/cache/hermione.js.map +0 -1
- package/build/lib/test-adapter/cache/playwright.d.ts +0 -1
- package/build/lib/test-adapter/cache/playwright.js +0 -5
- package/build/lib/test-adapter/cache/playwright.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CONTROL_TYPE_RADIOBUTTON = exports.CONTROL_TYPE_BUTTON = void 0;
|
|
4
|
+
exports.CONTROL_TYPE_BUTTON = 'button';
|
|
5
|
+
exports.CONTROL_TYPE_RADIOBUTTON = 'radiobutton';
|
|
6
6
|
//# sourceMappingURL=custom-gui-control-types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-gui-control-types.js","sourceRoot":"","sources":["../../../../lib/gui/constants/custom-gui-control-types.
|
|
1
|
+
{"version":3,"file":"custom-gui-control-types.js","sourceRoot":"","sources":["../../../../lib/gui/constants/custom-gui-control-types.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG,QAAQ,CAAC;AAE/B,QAAA,wBAAwB,GAAG,aAAa,CAAC"}
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { ValueOf } from 'type-fest';
|
|
2
|
+
export declare const GuiEvents: {
|
|
3
|
+
readonly SERVER_INIT: "serverInit";
|
|
4
|
+
readonly SERVER_READY: "serverReady";
|
|
5
|
+
};
|
|
6
|
+
export type GuiEvents = typeof GuiEvents;
|
|
7
|
+
export type GuiEvent = ValueOf<GuiEvents>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gui-events.js","sourceRoot":"","sources":["../../../../lib/gui/constants/gui-events.
|
|
1
|
+
{"version":3,"file":"gui-events.js","sourceRoot":"","sources":["../../../../lib/gui/constants/gui-events.ts"],"names":[],"mappings":";;;AAEa,QAAA,SAAS,GAAG;IACrB,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CACrB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client-events"), exports);
|
|
18
|
+
__exportStar(require("./custom-gui-control-types"), exports);
|
|
19
|
+
__exportStar(require("./gui-events"), exports);
|
|
20
|
+
__exportStar(require("./server"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/gui/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,6DAA2C;AAC3C,+CAA6B;AAC7B,2CAAyB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export declare const MAX_REQUEST_SIZE = "100mb";
|
|
2
|
+
export declare const KEEP_ALIVE_TIMEOUT: number;
|
|
3
|
+
export declare const HEADERS_TIMEOUT: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HEADERS_TIMEOUT = exports.KEEP_ALIVE_TIMEOUT = exports.MAX_REQUEST_SIZE = void 0;
|
|
4
|
+
exports.MAX_REQUEST_SIZE = '100mb';
|
|
5
|
+
exports.KEEP_ALIVE_TIMEOUT = 120 * 1000;
|
|
6
|
+
exports.HEADERS_TIMEOUT = 125 * 1000;
|
|
7
7
|
//# sourceMappingURL=server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../../lib/gui/constants/server.
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../../lib/gui/constants/server.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,OAAO,CAAC;AAE3B,QAAA,kBAAkB,GAAG,GAAG,GAAG,IAAI,CAAC;AAEhC,QAAA,eAAe,GAAG,GAAG,GAAG,IAAI,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
declare class EventSource {
|
|
3
|
-
_connections
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { Response } from 'express';
|
|
2
|
+
export declare class EventSource {
|
|
3
|
+
private _connections;
|
|
4
|
+
constructor();
|
|
5
|
+
addConnection(connection: Response): void;
|
|
6
|
+
emit(event: string, data?: unknown): void;
|
|
6
7
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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.EventSource = void 0;
|
|
7
|
+
const json_stringify_safe_1 = __importDefault(require("json-stringify-safe"));
|
|
8
|
+
class EventSource {
|
|
4
9
|
constructor() {
|
|
5
10
|
this._connections = [];
|
|
6
11
|
}
|
|
@@ -10,9 +15,10 @@ module.exports = class EventSource {
|
|
|
10
15
|
emit(event, data) {
|
|
11
16
|
this._connections.forEach(function (connection) {
|
|
12
17
|
connection.write('event: ' + event + '\n');
|
|
13
|
-
connection.write('data: ' +
|
|
18
|
+
connection.write('data: ' + (0, json_stringify_safe_1.default)(data) + '\n');
|
|
14
19
|
connection.write('\n\n');
|
|
15
20
|
});
|
|
16
21
|
}
|
|
17
|
-
}
|
|
22
|
+
}
|
|
23
|
+
exports.EventSource = EventSource;
|
|
18
24
|
//# sourceMappingURL=event-source.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-source.js","sourceRoot":"","sources":["../../../lib/gui/event-source.
|
|
1
|
+
{"version":3,"file":"event-source.js","sourceRoot":"","sources":["../../../lib/gui/event-source.ts"],"names":[],"mappings":";;;;;;AACA,8EAA4C;AAE5C,MAAa,WAAW;IAEpB;QACI,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;IAC3B,CAAC;IAED,aAAa,CAAC,UAAoB;QAC9B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;IAED,IAAI,CAAC,KAAa,EAAE,IAAc;QAC9B,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,UAAS,UAAU;YACzC,UAAU,CAAC,KAAK,CAAC,SAAS,GAAG,KAAK,GAAG,IAAI,CAAC,CAAC;YAC3C,UAAU,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAA,6BAAS,EAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;YACpD,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAjBD,kCAiBC"}
|
package/build/lib/gui/index.d.ts
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import type { CommanderStatic } from '@gemini-testing/commander';
|
|
2
|
+
import { HtmlReporterApi, ReporterConfig } from '../types';
|
|
3
|
+
import Hermione from 'hermione';
|
|
4
|
+
import { Api } from './api';
|
|
5
|
+
export interface GuiCliOptions {
|
|
6
|
+
autoRun: boolean;
|
|
7
|
+
open: unknown;
|
|
8
|
+
port: number;
|
|
9
|
+
hostname: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GuiConfigs {
|
|
12
|
+
options: GuiCliOptions;
|
|
13
|
+
program: CommanderStatic;
|
|
14
|
+
pluginConfig: ReporterConfig;
|
|
15
|
+
}
|
|
16
|
+
export interface ServerArgs {
|
|
2
17
|
paths: string[];
|
|
3
|
-
hermione:
|
|
4
|
-
guiApi:
|
|
5
|
-
configs:
|
|
6
|
-
options: {
|
|
7
|
-
open: unknown;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
18
|
+
hermione: Hermione & HtmlReporterApi;
|
|
19
|
+
guiApi: Api;
|
|
20
|
+
configs: GuiConfigs;
|
|
10
21
|
}
|
|
11
22
|
declare const _default: (args: ServerArgs) => void;
|
|
12
23
|
export default _default;
|
package/build/lib/gui/index.js
CHANGED
|
@@ -28,12 +28,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const chalk_1 = __importDefault(require("chalk"));
|
|
30
30
|
const opener_1 = __importDefault(require("opener"));
|
|
31
|
-
const
|
|
31
|
+
const server = __importStar(require("./server"));
|
|
32
32
|
const common_utils_1 = require("../common-utils");
|
|
33
33
|
const utils = __importStar(require("../server-utils"));
|
|
34
34
|
const { logError } = utils;
|
|
35
35
|
exports.default = (args) => {
|
|
36
|
-
|
|
36
|
+
server.start(args)
|
|
37
37
|
.then(({ url }) => {
|
|
38
38
|
common_utils_1.logger.log(`GUI is running at ${chalk_1.default.cyan(url)}`);
|
|
39
39
|
args.configs.options.open && (0, opener_1.default)(url);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/gui/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/gui/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAA0B;AAC1B,oDAA4B;AAE5B,iDAAmC;AACnC,kDAAuC;AACvC,uDAAyC;AAKzC,MAAM,EAAC,QAAQ,EAAC,GAAG,KAAK,CAAC;AAsBzB,kBAAe,CAAC,IAAgB,EAAQ,EAAE;IACtC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;SACb,IAAI,CAAC,CAAC,EAAC,GAAG,EAAkB,EAAE,EAAE;QAC7B,qBAAM,CAAC,GAAG,CAAC,qBAAqB,eAAK,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,IAAI,IAAA,gBAAM,EAAC,GAAG,CAAC,CAAC;IAC7C,CAAC,CAAC;SACD,KAAK,CAAC,CAAC,GAAQ,EAAE,EAAE;QAChB,QAAQ,CAAC,GAAG,CAAC,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,CAAC;AACX,CAAC,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Router } from 'express';
|
|
2
|
+
import { ReporterConfig } from '../../types';
|
|
3
|
+
export declare const initPluginsRoutes: (router: Router, pluginConfig: ReporterConfig) => Router;
|
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initPluginsRoutes = void 0;
|
|
4
|
+
const express_1 = require("express");
|
|
5
|
+
const http_codes_1 = require("http-codes");
|
|
6
|
+
const server_utils_1 = require("../../server-utils");
|
|
7
|
+
const initPluginsRoutes = (router, pluginConfig) => {
|
|
6
8
|
if (!pluginConfig.pluginsEnabled) {
|
|
7
9
|
return router;
|
|
8
10
|
}
|
|
9
11
|
router.get(`/plugins/:pluginName/plugin.js`, (req, res) => {
|
|
10
|
-
if (isUnexpectedPlugin(pluginConfig.plugins, req.params.pluginName)) {
|
|
11
|
-
res.status(BAD_REQUEST).send({ error: `Unexpected plugin "${req.params.pluginName}" requested.` });
|
|
12
|
+
if ((0, server_utils_1.isUnexpectedPlugin)(pluginConfig.plugins, req.params.pluginName)) {
|
|
13
|
+
res.status(http_codes_1.BAD_REQUEST).send({ error: `Unexpected plugin "${req.params.pluginName}" requested.` });
|
|
12
14
|
return;
|
|
13
15
|
}
|
|
14
|
-
const pluginClientScriptPath = getPluginClientScriptPath(req.params.pluginName);
|
|
16
|
+
const pluginClientScriptPath = (0, server_utils_1.getPluginClientScriptPath)(req.params.pluginName);
|
|
15
17
|
if (!pluginClientScriptPath) {
|
|
16
|
-
res.status(INTERNAL_SERVER_ERROR).send('Plugin client script not found.');
|
|
18
|
+
res.status(http_codes_1.INTERNAL_SERVER_ERROR).send('Plugin client script not found.');
|
|
17
19
|
return;
|
|
18
20
|
}
|
|
19
21
|
res.sendFile(pluginClientScriptPath);
|
|
20
22
|
});
|
|
21
|
-
forEachPlugin(pluginConfig.plugins, pluginName => {
|
|
22
|
-
const initPluginMiddleware = getPluginMiddleware(pluginName);
|
|
23
|
+
(0, server_utils_1.forEachPlugin)(pluginConfig.plugins, pluginName => {
|
|
24
|
+
const initPluginMiddleware = (0, server_utils_1.getPluginMiddleware)(pluginName);
|
|
23
25
|
if (!initPluginMiddleware) {
|
|
24
26
|
return;
|
|
25
27
|
}
|
|
26
28
|
try {
|
|
27
|
-
const pluginRouter = Router();
|
|
29
|
+
const pluginRouter = (0, express_1.Router)();
|
|
28
30
|
initPluginMiddleware(pluginRouter);
|
|
29
31
|
router.use(`/plugin-routes/${pluginName}`, pluginRouter);
|
|
30
32
|
}
|
|
31
33
|
catch (err) {
|
|
32
|
-
logError(err);
|
|
34
|
+
(0, server_utils_1.logError)(err);
|
|
33
35
|
}
|
|
34
36
|
});
|
|
35
37
|
router.use('/plugin-routes/:pluginName', (req, res) => {
|
|
36
|
-
res.status(BAD_REQUEST).send({ error: `No middleware is registered for "${req.params.pluginName}".` });
|
|
38
|
+
res.status(http_codes_1.BAD_REQUEST).send({ error: `No middleware is registered for "${req.params.pluginName}".` });
|
|
37
39
|
});
|
|
38
40
|
return router;
|
|
39
41
|
};
|
|
42
|
+
exports.initPluginsRoutes = initPluginsRoutes;
|
|
40
43
|
//# sourceMappingURL=plugins.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../lib/gui/routes/plugins.
|
|
1
|
+
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../lib/gui/routes/plugins.ts"],"names":[],"mappings":";;;AAAA,qCAA+B;AAC/B,2CAA8D;AAE9D,qDAM4B;AAGrB,MAAM,iBAAiB,GAAG,CAAC,MAAc,EAAE,YAA4B,EAAU,EAAE;IACtF,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE;QAC9B,OAAO,MAAM,CAAC;KACjB;IAED,MAAM,CAAC,GAAG,CAAuB,gCAAgC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QAC5E,IAAI,IAAA,iCAAkB,EAAC,YAAY,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE;YACjE,GAAG,CAAC,MAAM,CAAC,wBAAW,CAAC,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,sBAAsB,GAAG,CAAC,MAAM,CAAC,UAAU,cAAc,EAAC,CAAC,CAAC;YACjG,OAAO;SACV;QAED,MAAM,sBAAsB,GAAG,IAAA,wCAAyB,EAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAChF,IAAI,CAAC,sBAAsB,EAAE;YACzB,GAAG,CAAC,MAAM,CAAC,kCAAqB,CAAC,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;YAC1E,OAAO;SACV;QAED,GAAG,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;IAEH,IAAA,4BAAa,EAAC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;QAC7C,MAAM,oBAAoB,GAAG,IAAA,kCAAmB,EAAC,UAAU,CAAC,CAAC;QAC7D,IAAI,CAAC,oBAAoB,EAAE;YACvB,OAAO;SACV;QAED,IAAI;YACA,MAAM,YAAY,GAAG,IAAA,gBAAM,GAAE,CAAC;YAC9B,oBAAoB,CAAC,YAAY,CAAC,CAAC;YAEnC,MAAM,CAAC,GAAG,CAAC,kBAAkB,UAAU,EAAE,EAAE,YAAY,CAAC,CAAC;SAC5D;QAAC,OAAO,GAAY,EAAE;YACnB,IAAA,uBAAQ,EAAC,GAAY,CAAC,CAAC;SAC1B;IACL,CAAC,CAAC,CAAC;IAEH,MAAM,CAAC,GAAG,CAAuB,4BAA4B,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACxE,GAAG,CAAC,MAAM,CAAC,wBAAW,CAAC,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,oCAAoC,GAAG,CAAC,MAAM,CAAC,UAAU,IAAI,EAAC,CAAC,CAAC;IACzG,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAzCW,QAAA,iBAAiB,qBAyC5B"}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
guiApi: any;
|
|
5
|
-
configs: any;
|
|
6
|
-
}): Promise<{
|
|
7
|
-
url: string;
|
|
8
|
-
}>;
|
|
1
|
+
import { ServerArgs } from './index';
|
|
2
|
+
import { ServerReadyData } from './api';
|
|
3
|
+
export declare const start: ({ paths, hermione, guiApi, configs }: ServerArgs) => Promise<ServerReadyData>;
|
package/build/lib/gui/server.js
CHANGED
|
@@ -1,64 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
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.start = void 0;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const express_1 = __importDefault(require("express"));
|
|
9
|
+
const signal_exit_1 = require("signal-exit");
|
|
10
|
+
const bluebird_1 = __importDefault(require("bluebird"));
|
|
11
|
+
const body_parser_1 = __importDefault(require("body-parser"));
|
|
12
|
+
const http_codes_1 = require("http-codes");
|
|
13
|
+
const app_1 = require("./app");
|
|
14
|
+
const constants_1 = require("./constants");
|
|
15
|
+
const server_utils_1 = require("../server-utils");
|
|
16
|
+
const common_utils_1 = require("../common-utils");
|
|
17
|
+
const plugins_1 = require("./routes/plugins");
|
|
18
|
+
const start = async ({ paths, hermione, guiApi, configs }) => {
|
|
14
19
|
const { options, pluginConfig } = configs;
|
|
15
|
-
const app = App.create(paths, hermione, configs);
|
|
16
|
-
const server =
|
|
17
|
-
server.use(
|
|
20
|
+
const app = app_1.App.create(paths, hermione, configs);
|
|
21
|
+
const server = (0, express_1.default)();
|
|
22
|
+
server.use(body_parser_1.default.json({ limit: constants_1.MAX_REQUEST_SIZE }));
|
|
18
23
|
await guiApi.initServer(server);
|
|
19
24
|
// allow plugins to precede default server routes
|
|
20
|
-
server.use(initPluginsRoutes(
|
|
21
|
-
server.use(
|
|
22
|
-
server.use(
|
|
23
|
-
server.get('/', (
|
|
24
|
-
server.get('/events', (
|
|
25
|
-
res.writeHead(OK, { 'Content-Type': 'text/event-stream' });
|
|
25
|
+
server.use((0, plugins_1.initPluginsRoutes)(express_1.default.Router(), pluginConfig));
|
|
26
|
+
server.use(express_1.default.static(path_1.default.join(__dirname, '../static'), { index: 'gui.html' }));
|
|
27
|
+
server.use(express_1.default.static(path_1.default.join(process.cwd(), pluginConfig.path)));
|
|
28
|
+
server.get('/', (_req, res) => res.sendFile(path_1.default.join(__dirname, '../static', 'gui.html')));
|
|
29
|
+
server.get('/events', (_req, res) => {
|
|
30
|
+
res.writeHead(http_codes_1.OK, { 'Content-Type': 'text/event-stream' });
|
|
26
31
|
app.addClient(res);
|
|
27
32
|
});
|
|
28
|
-
server.set('json replacer', (
|
|
33
|
+
server.set('json replacer', (_key, val) => {
|
|
29
34
|
return typeof val === 'function' ? val.toString() : val;
|
|
30
35
|
});
|
|
31
|
-
server.get('/init', async (
|
|
36
|
+
server.get('/init', async (_req, res) => {
|
|
32
37
|
try {
|
|
33
|
-
await initializeCustomGui(hermione, pluginConfig);
|
|
38
|
+
await (0, server_utils_1.initializeCustomGui)(hermione, pluginConfig);
|
|
39
|
+
res.json(app.data);
|
|
34
40
|
}
|
|
35
41
|
catch (e) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
const error = e;
|
|
43
|
+
if (!app.data) {
|
|
44
|
+
throw new Error(`Failed to initialize custom GUI ${error.message}`);
|
|
45
|
+
}
|
|
46
|
+
res.json({
|
|
47
|
+
...app.data,
|
|
48
|
+
customGuiError: {
|
|
49
|
+
response: {
|
|
50
|
+
status: http_codes_1.INTERNAL_SERVER_ERROR,
|
|
51
|
+
data: `Error while trying to initialize custom GUI: ${error.message}`
|
|
52
|
+
}
|
|
40
53
|
}
|
|
41
|
-
};
|
|
54
|
+
});
|
|
42
55
|
}
|
|
43
|
-
res.json(app.data);
|
|
44
56
|
});
|
|
45
57
|
server.post('/run', (req, res) => {
|
|
46
58
|
try {
|
|
47
59
|
// do not wait for completion so that response does not hang and browser does not restart it by timeout
|
|
48
60
|
app.run(req.body);
|
|
49
|
-
res.sendStatus(OK);
|
|
61
|
+
res.sendStatus(http_codes_1.OK);
|
|
50
62
|
}
|
|
51
63
|
catch (e) {
|
|
52
|
-
res.status(INTERNAL_SERVER_ERROR).send(`Error while trying to run tests: ${e.message}`);
|
|
64
|
+
res.status(http_codes_1.INTERNAL_SERVER_ERROR).send(`Error while trying to run tests: ${e.message}`);
|
|
53
65
|
}
|
|
54
66
|
});
|
|
55
67
|
server.post('/run-custom-gui-action', async ({ body: payload }, res) => {
|
|
56
68
|
try {
|
|
57
|
-
await runCustomGuiAction(hermione, pluginConfig, payload);
|
|
58
|
-
res.sendStatus(OK);
|
|
69
|
+
await (0, server_utils_1.runCustomGuiAction)(hermione, pluginConfig, payload);
|
|
70
|
+
res.sendStatus(http_codes_1.OK);
|
|
59
71
|
}
|
|
60
72
|
catch (e) {
|
|
61
|
-
res.status(INTERNAL_SERVER_ERROR).send(`Error while running custom gui action: ${e.message}`);
|
|
73
|
+
res.status(http_codes_1.INTERNAL_SERVER_ERROR).send(`Error while running custom gui action: ${e.message}`);
|
|
62
74
|
}
|
|
63
75
|
});
|
|
64
76
|
server.post('/reference-data-to-update', (req, res) => {
|
|
@@ -67,26 +79,26 @@ exports.start = async ({ paths, hermione, guiApi, configs }) => {
|
|
|
67
79
|
res.json(data);
|
|
68
80
|
}
|
|
69
81
|
catch (error) {
|
|
70
|
-
res.status(INTERNAL_SERVER_ERROR).send({ error: error.message });
|
|
82
|
+
res.status(http_codes_1.INTERNAL_SERVER_ERROR).send({ error: error.message });
|
|
71
83
|
}
|
|
72
84
|
});
|
|
73
85
|
server.post('/update-reference', (req, res) => {
|
|
74
86
|
app.updateReferenceImage(req.body)
|
|
75
87
|
.then((updatedTests) => res.json(updatedTests))
|
|
76
|
-
.catch(({ message }) => res.status(INTERNAL_SERVER_ERROR).send({ error: message }));
|
|
88
|
+
.catch(({ message }) => res.status(http_codes_1.INTERNAL_SERVER_ERROR).send({ error: message }));
|
|
77
89
|
});
|
|
78
90
|
server.post('/undo-accept-images', (req, res) => {
|
|
79
91
|
app.undoAcceptImages(req.body)
|
|
80
92
|
.then((updated) => res.json(updated))
|
|
81
|
-
.catch(({ message }) => res.status(INTERNAL_SERVER_ERROR).send({ error: message }));
|
|
93
|
+
.catch(({ message }) => res.status(http_codes_1.INTERNAL_SERVER_ERROR).send({ error: message }));
|
|
82
94
|
});
|
|
83
95
|
server.post('/get-find-equal-diffs-data', (req, res) => {
|
|
84
96
|
try {
|
|
85
97
|
const data = app.getImageDataToFindEqualDiffs(req.body);
|
|
86
98
|
res.json(data);
|
|
87
99
|
}
|
|
88
|
-
catch (
|
|
89
|
-
res.status(INTERNAL_SERVER_ERROR).send({ error:
|
|
100
|
+
catch (e) {
|
|
101
|
+
res.status(http_codes_1.INTERNAL_SERVER_ERROR).send({ error: e.message });
|
|
90
102
|
}
|
|
91
103
|
});
|
|
92
104
|
server.post('/find-equal-diffs', async (req, res) => {
|
|
@@ -94,33 +106,34 @@ exports.start = async ({ paths, hermione, guiApi, configs }) => {
|
|
|
94
106
|
const result = await app.findEqualDiffs(req.body);
|
|
95
107
|
res.json(result);
|
|
96
108
|
}
|
|
97
|
-
catch (
|
|
98
|
-
res.status(INTERNAL_SERVER_ERROR).send({ error: message });
|
|
109
|
+
catch (e) {
|
|
110
|
+
res.status(http_codes_1.INTERNAL_SERVER_ERROR).send({ error: e.message });
|
|
99
111
|
}
|
|
100
112
|
});
|
|
101
|
-
onExit(() => {
|
|
113
|
+
(0, signal_exit_1.onExit)(() => {
|
|
102
114
|
app.finalize();
|
|
103
|
-
logger.log('server shutting down');
|
|
115
|
+
common_utils_1.logger.log('server shutting down');
|
|
104
116
|
});
|
|
105
|
-
server.post('/stop', (
|
|
117
|
+
server.post('/stop', (_req, res) => {
|
|
106
118
|
try {
|
|
107
119
|
// pass 0 to prevent terminating hermione process
|
|
108
|
-
hermione.halt('Tests were stopped by the user', 0);
|
|
109
|
-
res.sendStatus(OK);
|
|
120
|
+
hermione.halt(new Error('Tests were stopped by the user'), 0);
|
|
121
|
+
res.sendStatus(http_codes_1.OK);
|
|
110
122
|
}
|
|
111
123
|
catch (e) {
|
|
112
|
-
res.status(INTERNAL_SERVER_ERROR).send(`Error while stopping tests: ${e.message}`);
|
|
124
|
+
res.status(http_codes_1.INTERNAL_SERVER_ERROR).send(`Error while stopping tests: ${e.message}`);
|
|
113
125
|
}
|
|
114
126
|
});
|
|
115
127
|
await app.initialize();
|
|
116
128
|
const { port, hostname } = options;
|
|
117
|
-
await
|
|
129
|
+
await bluebird_1.default.fromCallback((callback) => {
|
|
118
130
|
const httpServer = server.listen(port, hostname, callback);
|
|
119
|
-
httpServer.keepAliveTimeout = KEEP_ALIVE_TIMEOUT;
|
|
120
|
-
httpServer.headersTimeout = HEADERS_TIMEOUT;
|
|
131
|
+
httpServer.keepAliveTimeout = constants_1.KEEP_ALIVE_TIMEOUT;
|
|
132
|
+
httpServer.headersTimeout = constants_1.HEADERS_TIMEOUT;
|
|
121
133
|
});
|
|
122
134
|
const data = { url: `http://${hostname}:${port}` };
|
|
123
135
|
await guiApi.serverReady(data);
|
|
124
136
|
return data;
|
|
125
137
|
};
|
|
138
|
+
exports.start = start;
|
|
126
139
|
//# sourceMappingURL=server.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../lib/gui/server.
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../lib/gui/server.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,sDAA8B;AAC9B,6CAAmC;AACnC,wDAAuC;AACvC,8DAAqC;AACrC,2CAAqD;AAErD,+BAA0B;AAC1B,2CAAkF;AAClF,kDAAwE;AACxE,kDAAuC;AACvC,8CAAmD;AAI5C,MAAM,KAAK,GAAG,KAAK,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAa,EAA4B,EAAE;IACpG,MAAM,EAAC,OAAO,EAAE,YAAY,EAAC,GAAG,OAAO,CAAC;IACxC,MAAM,GAAG,GAAG,SAAG,CAA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