@allurereport/core 3.0.0-beta.20 → 3.0.0-beta.21
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/report.js +8 -1
- package/dist/store/store.js +3 -1
- package/package.json +18 -17
package/dist/report.js
CHANGED
|
@@ -139,7 +139,7 @@ export class AllureReport {
|
|
|
139
139
|
});
|
|
140
140
|
});
|
|
141
141
|
this.dumpState = async () => {
|
|
142
|
-
const { testResults, testCases, fixtures, attachments: attachmentsLinks, environments, globalAttachments = [], globalErrors = [], indexAttachmentByTestResult = {}, indexTestResultByHistoryId = {}, indexTestResultByTestCase = {}, indexLatestEnvTestResultByHistoryId = {}, indexAttachmentByFixture = {}, indexFixturesByTestResult = {}, indexKnownByHistoryId = {}, } = __classPrivateFieldGet(this, _AllureReport_store, "f").dumpState();
|
|
142
|
+
const { testResults, testCases, fixtures, attachments: attachmentsLinks, environments, globalAttachments = [], globalErrors = [], indexAttachmentByTestResult = {}, indexTestResultByHistoryId = {}, indexTestResultByTestCase = {}, indexLatestEnvTestResultByHistoryId = {}, indexAttachmentByFixture = {}, indexFixturesByTestResult = {}, indexKnownByHistoryId = {}, qualityGateResultsByRules = {}, } = __classPrivateFieldGet(this, _AllureReport_store, "f").dumpState();
|
|
143
143
|
const allAttachments = await __classPrivateFieldGet(this, _AllureReport_store, "f").allAttachments();
|
|
144
144
|
const dumpArchive = new ZipWriteStream({
|
|
145
145
|
zlib: { level: 5 },
|
|
@@ -197,6 +197,9 @@ export class AllureReport {
|
|
|
197
197
|
await addEntry(Buffer.from(JSON.stringify(indexKnownByHistoryId)), {
|
|
198
198
|
name: AllureStoreDumpFiles.IndexKnownByHistoryId,
|
|
199
199
|
});
|
|
200
|
+
await addEntry(Buffer.from(JSON.stringify(qualityGateResultsByRules)), {
|
|
201
|
+
name: AllureStoreDumpFiles.QualityGateResultsByRules,
|
|
202
|
+
});
|
|
200
203
|
for (const attachment of allAttachments) {
|
|
201
204
|
const content = await __classPrivateFieldGet(this, _AllureReport_store, "f").attachmentContentById(attachment.id);
|
|
202
205
|
if (!content) {
|
|
@@ -239,6 +242,7 @@ export class AllureReport {
|
|
|
239
242
|
const indexAttachmentsByFixtureEntry = await dump.entryData(AllureStoreDumpFiles.IndexAttachmentsByFixture);
|
|
240
243
|
const indexFixturesByTestResultEntry = await dump.entryData(AllureStoreDumpFiles.IndexFixturesByTestResult);
|
|
241
244
|
const indexKnownByHistoryIdEntry = await dump.entryData(AllureStoreDumpFiles.IndexKnownByHistoryId);
|
|
245
|
+
const qualityGateResultsByRulesEntry = await dump.entryData(AllureStoreDumpFiles.QualityGateResultsByRules);
|
|
242
246
|
const attachmentsEntries = Object.entries(await dump.entries()).reduce((acc, [entryName, entry]) => {
|
|
243
247
|
switch (entryName) {
|
|
244
248
|
case AllureStoreDumpFiles.Attachments:
|
|
@@ -256,6 +260,7 @@ export class AllureReport {
|
|
|
256
260
|
case AllureStoreDumpFiles.IndexAttachmentsByFixture:
|
|
257
261
|
case AllureStoreDumpFiles.IndexFixturesByTestResult:
|
|
258
262
|
case AllureStoreDumpFiles.IndexKnownByHistoryId:
|
|
263
|
+
case AllureStoreDumpFiles.QualityGateResultsByRules:
|
|
259
264
|
return acc;
|
|
260
265
|
default:
|
|
261
266
|
return Object.assign(acc, {
|
|
@@ -279,6 +284,7 @@ export class AllureReport {
|
|
|
279
284
|
indexAttachmentByFixture: JSON.parse(indexAttachmentsByFixtureEntry.toString("utf8")),
|
|
280
285
|
indexFixturesByTestResult: JSON.parse(indexFixturesByTestResultEntry.toString("utf8")),
|
|
281
286
|
indexKnownByHistoryId: JSON.parse(indexKnownByHistoryIdEntry.toString("utf8")),
|
|
287
|
+
qualityGateResultsByRules: JSON.parse(qualityGateResultsByRulesEntry.toString("utf8")),
|
|
282
288
|
};
|
|
283
289
|
const stageTempDir = await mkdtemp(join(tmpdir(), basename(stage, ".zip")));
|
|
284
290
|
const resultsAttachments = {};
|
|
@@ -445,6 +451,7 @@ export class AllureReport {
|
|
|
445
451
|
reportName: __classPrivateFieldGet(this, _AllureReport_reportName, "f"),
|
|
446
452
|
state: pluginState,
|
|
447
453
|
reportFiles: pluginFiles,
|
|
454
|
+
reportUrl: this.reportUrl,
|
|
448
455
|
ci: __classPrivateFieldGet(this, _AllureReport_ci, "f"),
|
|
449
456
|
};
|
|
450
457
|
try {
|
package/dist/store/store.js
CHANGED
|
@@ -502,6 +502,7 @@ export class DefaultAllureStore {
|
|
|
502
502
|
indexAttachmentByFixture: {},
|
|
503
503
|
indexFixturesByTestResult: {},
|
|
504
504
|
indexKnownByHistoryId: {},
|
|
505
|
+
qualityGateResultsByRules: __classPrivateFieldGet(this, _DefaultAllureStore_qualityGateResultsByRules, "f"),
|
|
505
506
|
};
|
|
506
507
|
this.indexLatestEnvTestResultByHistoryId.forEach((envMap) => {
|
|
507
508
|
envMap.forEach((tr, historyId) => {
|
|
@@ -529,7 +530,7 @@ export class DefaultAllureStore {
|
|
|
529
530
|
return storeDump;
|
|
530
531
|
}
|
|
531
532
|
async restoreState(stateDump, attachmentsContents = {}) {
|
|
532
|
-
const { testResults, attachments, testCases, fixtures, reportVariables, environments, globalAttachments = [], globalErrors = [], indexAttachmentByTestResult = {}, indexTestResultByHistoryId = {}, indexTestResultByTestCase = {}, indexLatestEnvTestResultByHistoryId = {}, indexAttachmentByFixture = {}, indexFixturesByTestResult = {}, indexKnownByHistoryId = {}, } = stateDump;
|
|
533
|
+
const { testResults, attachments, testCases, fixtures, reportVariables, environments, globalAttachments = [], globalErrors = [], indexAttachmentByTestResult = {}, indexTestResultByHistoryId = {}, indexTestResultByTestCase = {}, indexLatestEnvTestResultByHistoryId = {}, indexAttachmentByFixture = {}, indexFixturesByTestResult = {}, indexKnownByHistoryId = {}, qualityGateResultsByRules = {}, } = stateDump;
|
|
533
534
|
updateMapWithRecord(__classPrivateFieldGet(this, _DefaultAllureStore_testResults, "f"), testResults);
|
|
534
535
|
updateMapWithRecord(__classPrivateFieldGet(this, _DefaultAllureStore_attachments, "f"), attachments);
|
|
535
536
|
updateMapWithRecord(__classPrivateFieldGet(this, _DefaultAllureStore_testCases, "f"), testCases);
|
|
@@ -614,6 +615,7 @@ export class DefaultAllureStore {
|
|
|
614
615
|
}
|
|
615
616
|
hidePreviousAttempt(this.indexLatestEnvTestResultByHistoryId, tr);
|
|
616
617
|
});
|
|
618
|
+
Object.assign(__classPrivateFieldGet(this, _DefaultAllureStore_qualityGateResultsByRules, "f"), qualityGateResultsByRules);
|
|
617
619
|
}
|
|
618
620
|
}
|
|
619
621
|
_DefaultAllureStore_testResults = new WeakMap(), _DefaultAllureStore_attachments = new WeakMap(), _DefaultAllureStore_attachmentContents = new WeakMap(), _DefaultAllureStore_testCases = new WeakMap(), _DefaultAllureStore_metadata = new WeakMap(), _DefaultAllureStore_history = new WeakMap(), _DefaultAllureStore_known = new WeakMap(), _DefaultAllureStore_fixtures = new WeakMap(), _DefaultAllureStore_defaultLabels = new WeakMap(), _DefaultAllureStore_environment = new WeakMap(), _DefaultAllureStore_environmentsConfig = new WeakMap(), _DefaultAllureStore_reportVariables = new WeakMap(), _DefaultAllureStore_realtimeDispatcher = new WeakMap(), _DefaultAllureStore_realtimeSubscriber = new WeakMap(), _DefaultAllureStore_globalAttachments = new WeakMap(), _DefaultAllureStore_globalErrors = new WeakMap(), _DefaultAllureStore_globalExitCode = new WeakMap(), _DefaultAllureStore_qualityGateResultsByRules = new WeakMap(), _DefaultAllureStore_historyPoints = new WeakMap(), _DefaultAllureStore_repoData = new WeakMap(), _DefaultAllureStore_environments = new WeakMap(), _DefaultAllureStore_instances = new WeakSet(), _DefaultAllureStore_addEnvironments = function _DefaultAllureStore_addEnvironments(envs) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/core",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.21",
|
|
4
4
|
"description": "Collection of generic Allure utilities used across the entire project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure"
|
|
@@ -25,22 +25,23 @@
|
|
|
25
25
|
"test": "vitest run"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@allurereport/ci": "3.0.0-beta.
|
|
29
|
-
"@allurereport/core-api": "3.0.0-beta.
|
|
30
|
-
"@allurereport/plugin-allure2": "3.0.0-beta.
|
|
31
|
-
"@allurereport/plugin-api": "3.0.0-beta.
|
|
32
|
-
"@allurereport/plugin-awesome": "3.0.0-beta.
|
|
33
|
-
"@allurereport/plugin-classic": "3.0.0-beta.
|
|
34
|
-
"@allurereport/plugin-csv": "3.0.0-beta.
|
|
35
|
-
"@allurereport/plugin-dashboard": "3.0.0-beta.
|
|
36
|
-
"@allurereport/plugin-
|
|
37
|
-
"@allurereport/plugin-
|
|
38
|
-
"@allurereport/plugin-
|
|
39
|
-
"@allurereport/plugin-
|
|
40
|
-
"@allurereport/
|
|
41
|
-
"@allurereport/reader
|
|
42
|
-
"@allurereport/
|
|
43
|
-
"@allurereport/
|
|
28
|
+
"@allurereport/ci": "3.0.0-beta.21",
|
|
29
|
+
"@allurereport/core-api": "3.0.0-beta.21",
|
|
30
|
+
"@allurereport/plugin-allure2": "3.0.0-beta.21",
|
|
31
|
+
"@allurereport/plugin-api": "3.0.0-beta.21",
|
|
32
|
+
"@allurereport/plugin-awesome": "3.0.0-beta.21",
|
|
33
|
+
"@allurereport/plugin-classic": "3.0.0-beta.21",
|
|
34
|
+
"@allurereport/plugin-csv": "3.0.0-beta.21",
|
|
35
|
+
"@allurereport/plugin-dashboard": "3.0.0-beta.21",
|
|
36
|
+
"@allurereport/plugin-jira": "3.0.0-beta.21",
|
|
37
|
+
"@allurereport/plugin-log": "3.0.0-beta.21",
|
|
38
|
+
"@allurereport/plugin-progress": "3.0.0-beta.21",
|
|
39
|
+
"@allurereport/plugin-slack": "3.0.0-beta.21",
|
|
40
|
+
"@allurereport/plugin-testplan": "3.0.0-beta.21",
|
|
41
|
+
"@allurereport/reader": "3.0.0-beta.21",
|
|
42
|
+
"@allurereport/reader-api": "3.0.0-beta.21",
|
|
43
|
+
"@allurereport/service": "3.0.0-beta.21",
|
|
44
|
+
"@allurereport/summary": "3.0.0-beta.21",
|
|
44
45
|
"handlebars": "^4.7.8",
|
|
45
46
|
"markdown-it": "^14.1.0",
|
|
46
47
|
"node-stream-zip": "^1.15.0",
|