@allurereport/core 3.14.1 → 3.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +1 -1
- package/dist/store/store.d.ts +4 -4
- package/dist/store/store.js +9 -8
- package/package.json +22 -22
package/dist/api.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export interface PluginInstance {
|
|
|
8
8
|
options: Record<string, any>;
|
|
9
9
|
}
|
|
10
10
|
type FullConfigRequiredFromConfig = Required<Pick<Config, "name" | "output" | "open" | "knownIssuesPath">>;
|
|
11
|
-
export interface FullConfig extends Omit<Config, "name" | "output" | "open" | "
|
|
11
|
+
export interface FullConfig extends Omit<Config, "name" | "output" | "open" | "allureService" | "knownIssuesPath" | "plugins" | "port">, FullConfigRequiredFromConfig {
|
|
12
12
|
port: Config["port"] | undefined;
|
|
13
13
|
allowedEnvironments?: Config["allowedEnvironments"];
|
|
14
14
|
reportFiles: ReportFiles;
|
package/dist/store/store.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type AllureCheckResult, type AllureHistory, type AttachmentLink, type DefaultLabelsConfig, type EnvironmentIdentity, type EnvironmentsConfig, type HistoryDataPoint, type HistoryTestResult, type KnownTestFailure, type ReportVariables, type Statistic, type TestCase, type TestEnvGroup, type TestError, type TestFixtureResult, type TestResult } from "@allurereport/core-api";
|
|
2
|
-
import { type AllureStore, type AllureStoreDump, type ExitCode, type
|
|
1
|
+
import { type AllureCheckResult, type AllureHistory, type AttachmentLink, type DefaultLabelsConfig, type EnvironmentIdentity, type EnvironmentsConfig, type GlobalAttachmentLink, type HistoryDataPoint, type HistoryTestResult, type KnownTestFailure, type ReportVariables, type Statistic, type TestCase, type TestEnvGroup, type TestError, type TestFixtureResult, type TestResult } from "@allurereport/core-api";
|
|
2
|
+
import { type AllureStore, type AllureStoreDump, type ExitCode, type PluginGlobalError, type QualityGateValidationResult, type RealtimeEventsDispatcher, type RealtimeSubscriber, type ResultFile, type TestResultFilter } from "@allurereport/plugin-api";
|
|
3
3
|
import type { RawFixtureResult, RawGlobals, RawMetadata, RawTestResult, ReaderContext, ResultsVisitor } from "@allurereport/reader-api";
|
|
4
4
|
export declare const mapToObject: <K extends string | number | symbol, T = any>(map: Map<K, T>) => Record<K, T>;
|
|
5
5
|
export declare const updateMapWithRecord: <K extends string | number | symbol, T = any>(map: Map<K, T>, record: Record<K, T>) => Map<K, T>;
|
|
@@ -33,8 +33,8 @@ export declare class DefaultAllureStore implements AllureStore, ResultsVisitor {
|
|
|
33
33
|
globalExitCode(): Promise<ExitCode | undefined>;
|
|
34
34
|
allGlobalErrors(): Promise<TestError[]>;
|
|
35
35
|
allGlobalErrorsByEnv(): Promise<Record<string, PluginGlobalError[]>>;
|
|
36
|
-
allGlobalAttachments(): Promise<
|
|
37
|
-
allGlobalAttachmentsByEnv(): Promise<Record<string,
|
|
36
|
+
allGlobalAttachments(): Promise<GlobalAttachmentLink[]>;
|
|
37
|
+
allGlobalAttachmentsByEnv(): Promise<Record<string, GlobalAttachmentLink[]>>;
|
|
38
38
|
visitCheckResult(result: AllureCheckResult): Promise<void>;
|
|
39
39
|
visitTestResult(raw: RawTestResult, context: ReaderContext): Promise<void>;
|
|
40
40
|
visitTestFixtureResult(result: RawFixtureResult, context: ReaderContext): Promise<void>;
|
package/dist/store/store.js
CHANGED
|
@@ -153,13 +153,17 @@ export class DefaultAllureStore {
|
|
|
153
153
|
__classPrivateFieldSet(this, _DefaultAllureStore_globalExitCode, exitCode, "f");
|
|
154
154
|
});
|
|
155
155
|
__classPrivateFieldGet(this, _DefaultAllureStore_realtimeSubscriber, "f")?.onGlobalError((error) => {
|
|
156
|
-
__classPrivateFieldGet(this, _DefaultAllureStore_instances, "m",
|
|
156
|
+
const resolvedEnvironment = __classPrivateFieldGet(this, _DefaultAllureStore_instances, "m", _DefaultAllureStore_resolveGlobalEnvironmentIdentity).call(this, error.environment);
|
|
157
|
+
__classPrivateFieldGet(this, _DefaultAllureStore_instances, "m", _DefaultAllureStore_addGlobalError).call(this, {
|
|
158
|
+
...error,
|
|
159
|
+
environment: resolvedEnvironment.id,
|
|
160
|
+
});
|
|
157
161
|
});
|
|
158
162
|
__classPrivateFieldGet(this, _DefaultAllureStore_realtimeSubscriber, "f")?.onGlobalAttachment(({ attachment, fileName, environment }) => {
|
|
159
163
|
const originalFileName = attachment.getOriginalFileName();
|
|
160
164
|
const resolvedEnvironment = __classPrivateFieldGet(this, _DefaultAllureStore_instances, "m", _DefaultAllureStore_resolveGlobalEnvironmentIdentity).call(this, environment);
|
|
161
165
|
const attachmentLink = {
|
|
162
|
-
id: __classPrivateFieldGet(this, _DefaultAllureStore_instances, "m", _DefaultAllureStore_globalAttachmentId).call(this, originalFileName, resolvedEnvironment
|
|
166
|
+
id: __classPrivateFieldGet(this, _DefaultAllureStore_instances, "m", _DefaultAllureStore_globalAttachmentId).call(this, originalFileName, resolvedEnvironment.id),
|
|
163
167
|
name: fileName || originalFileName,
|
|
164
168
|
missed: false,
|
|
165
169
|
used: true,
|
|
@@ -167,7 +171,7 @@ export class DefaultAllureStore {
|
|
|
167
171
|
contentType: attachment.getContentType(),
|
|
168
172
|
contentLength: attachment.getContentLength(),
|
|
169
173
|
originalFileName,
|
|
170
|
-
environment: resolvedEnvironment
|
|
174
|
+
environment: resolvedEnvironment.id,
|
|
171
175
|
};
|
|
172
176
|
__classPrivateFieldGet(this, _DefaultAllureStore_instances, "m", _DefaultAllureStore_addGlobalAttachment).call(this, attachmentLink, attachment);
|
|
173
177
|
});
|
|
@@ -404,7 +408,7 @@ export class DefaultAllureStore {
|
|
|
404
408
|
const linkedAttachment = __classPrivateFieldGet(this, _DefaultAllureStore_attachments, "f").get(md5(originalFileName));
|
|
405
409
|
const attachmentContent = __classPrivateFieldGet(this, _DefaultAllureStore_attachmentContents, "f").get(md5(originalFileName));
|
|
406
410
|
const attachmentLink = {
|
|
407
|
-
id: __classPrivateFieldGet(this, _DefaultAllureStore_instances, "m", _DefaultAllureStore_globalAttachmentId).call(this, originalFileName, resolvedEnvironment
|
|
411
|
+
id: __classPrivateFieldGet(this, _DefaultAllureStore_instances, "m", _DefaultAllureStore_globalAttachmentId).call(this, originalFileName, resolvedEnvironment.id),
|
|
408
412
|
name: attachment?.name || originalFileName,
|
|
409
413
|
originalFileName,
|
|
410
414
|
ext: extname(originalFileName),
|
|
@@ -412,7 +416,7 @@ export class DefaultAllureStore {
|
|
|
412
416
|
missed: !attachmentContent,
|
|
413
417
|
contentType: attachment?.contentType ?? linkedAttachment?.contentType,
|
|
414
418
|
contentLength: linkedAttachment?.contentLength,
|
|
415
|
-
environment: resolvedEnvironment
|
|
419
|
+
environment: resolvedEnvironment.name,
|
|
416
420
|
};
|
|
417
421
|
__classPrivateFieldGet(this, _DefaultAllureStore_instances, "m", _DefaultAllureStore_addGlobalAttachment).call(this, attachmentLink, attachmentContent);
|
|
418
422
|
});
|
|
@@ -1128,9 +1132,6 @@ _DefaultAllureStore_testResults = new WeakMap(), _DefaultAllureStore_environment
|
|
|
1128
1132
|
__classPrivateFieldGet(this, _DefaultAllureStore_globalErrors, "f").push(__classPrivateFieldGet(this, _DefaultAllureStore_instances, "m", _DefaultAllureStore_indexGlobalError).call(this, error));
|
|
1129
1133
|
}, _DefaultAllureStore_indexGlobalAttachment = function _DefaultAllureStore_indexGlobalAttachment(attachmentLink) {
|
|
1130
1134
|
const resolvedEnvironment = __classPrivateFieldGet(this, _DefaultAllureStore_instances, "m", _DefaultAllureStore_resolveGlobalEnvironmentIdentity).call(this, attachmentLink.environment);
|
|
1131
|
-
if (!resolvedEnvironment) {
|
|
1132
|
-
return attachmentLink;
|
|
1133
|
-
}
|
|
1134
1135
|
attachmentLink.environment = resolvedEnvironment.name;
|
|
1135
1136
|
__classPrivateFieldGet(this, _DefaultAllureStore_instances, "m", _DefaultAllureStore_addEnvironments).call(this, [resolvedEnvironment]);
|
|
1136
1137
|
index(__classPrivateFieldGet(this, _DefaultAllureStore_globalAttachmentIdsByEnv, "f"), resolvedEnvironment.id, attachmentLink.id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/core",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.3",
|
|
4
4
|
"description": "Collection of generic Allure utilities used across the entire project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure"
|
|
@@ -25,32 +25,32 @@
|
|
|
25
25
|
"lint:fix": "oxlint --import-plugin --fix src test features stories"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@allurereport/ci": "3.14.
|
|
29
|
-
"@allurereport/core-api": "3.14.
|
|
30
|
-
"@allurereport/plugin-agent": "3.14.
|
|
31
|
-
"@allurereport/plugin-allure2": "3.14.
|
|
32
|
-
"@allurereport/plugin-api": "3.14.
|
|
33
|
-
"@allurereport/plugin-awesome": "3.14.
|
|
34
|
-
"@allurereport/plugin-classic": "3.14.
|
|
35
|
-
"@allurereport/plugin-csv": "3.14.
|
|
36
|
-
"@allurereport/plugin-dashboard": "3.14.
|
|
37
|
-
"@allurereport/plugin-jira": "3.14.
|
|
38
|
-
"@allurereport/plugin-log": "3.14.
|
|
39
|
-
"@allurereport/plugin-progress": "3.14.
|
|
40
|
-
"@allurereport/plugin-slack": "3.14.
|
|
41
|
-
"@allurereport/plugin-testops": "3.14.
|
|
42
|
-
"@allurereport/plugin-testplan": "3.14.
|
|
43
|
-
"@allurereport/reader": "3.14.
|
|
44
|
-
"@allurereport/reader-api": "3.14.
|
|
45
|
-
"@allurereport/service": "3.14.
|
|
46
|
-
"@allurereport/summary": "3.14.
|
|
28
|
+
"@allurereport/ci": "3.14.3",
|
|
29
|
+
"@allurereport/core-api": "3.14.3",
|
|
30
|
+
"@allurereport/plugin-agent": "3.14.3",
|
|
31
|
+
"@allurereport/plugin-allure2": "3.14.3",
|
|
32
|
+
"@allurereport/plugin-api": "3.14.3",
|
|
33
|
+
"@allurereport/plugin-awesome": "3.14.3",
|
|
34
|
+
"@allurereport/plugin-classic": "3.14.3",
|
|
35
|
+
"@allurereport/plugin-csv": "3.14.3",
|
|
36
|
+
"@allurereport/plugin-dashboard": "3.14.3",
|
|
37
|
+
"@allurereport/plugin-jira": "3.14.3",
|
|
38
|
+
"@allurereport/plugin-log": "3.14.3",
|
|
39
|
+
"@allurereport/plugin-progress": "3.14.3",
|
|
40
|
+
"@allurereport/plugin-slack": "3.14.3",
|
|
41
|
+
"@allurereport/plugin-testops": "3.14.3",
|
|
42
|
+
"@allurereport/plugin-testplan": "3.14.3",
|
|
43
|
+
"@allurereport/reader": "3.14.3",
|
|
44
|
+
"@allurereport/reader-api": "3.14.3",
|
|
45
|
+
"@allurereport/service": "3.14.3",
|
|
46
|
+
"@allurereport/summary": "3.14.3",
|
|
47
47
|
"glob": "^13.0.6",
|
|
48
48
|
"handlebars": "^4.7.9",
|
|
49
49
|
"node-stream-zip": "^1.15.0",
|
|
50
50
|
"p-limit": "^7.3.0",
|
|
51
51
|
"yaml": "^2.8.3",
|
|
52
|
-
"yoctocolors": "^2.1.
|
|
53
|
-
"zip-stream": "^7.0.
|
|
52
|
+
"yoctocolors": "^2.1.2",
|
|
53
|
+
"zip-stream": "^7.0.5"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/node": "^20",
|