@allurereport/plugin-allure2 3.13.1 → 3.14.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/dist/converters.js +4 -4
- package/package.json +3 -3
package/dist/converters.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { filterIncludedInSuccessRate, isStep } from "@allurereport/core-api";
|
|
1
|
+
import { filterIncludedInSuccessRate, isStep, redactParameters } from "@allurereport/core-api";
|
|
2
2
|
import { matchCategories } from "./categories.js";
|
|
3
3
|
import { severityValues } from "./model.js";
|
|
4
4
|
import { updateStatistic } from "./utils.js";
|
|
5
5
|
const sortByTime = (a, b) => a.time.start !== undefined && b.time.start !== undefined ? a.time.start - b.time.start : 0;
|
|
6
6
|
const convertStatus = (status) => status;
|
|
7
7
|
const convertStageResult = (context, result) => {
|
|
8
|
-
const { name, ...testStage } = convertStep(context, {
|
|
8
|
+
const { name: _name, ...testStage } = convertStep(context, {
|
|
9
9
|
name: "test",
|
|
10
10
|
steps: result.steps,
|
|
11
11
|
start: result.start,
|
|
@@ -22,7 +22,7 @@ const convertStep = (context, step) => {
|
|
|
22
22
|
const name = step.name;
|
|
23
23
|
const steps = step.steps.map((child) => convertStep(context, child));
|
|
24
24
|
const stepsCount = steps.length;
|
|
25
|
-
const parameters = step.parameters;
|
|
25
|
+
const parameters = redactParameters(step.parameters);
|
|
26
26
|
const parametersCount = parameters.length;
|
|
27
27
|
const statusMessage = step.error?.message;
|
|
28
28
|
const shouldDisplayMessage = !!statusMessage || steps.findIndex((s) => s.statusMessage === statusMessage) > 0;
|
|
@@ -156,7 +156,7 @@ export const convertTestResult = (context, test) => {
|
|
|
156
156
|
statusTrace,
|
|
157
157
|
labels: test.labels,
|
|
158
158
|
links: test.links,
|
|
159
|
-
parameters: test.parameters,
|
|
159
|
+
parameters: redactParameters(test.parameters),
|
|
160
160
|
afterStages,
|
|
161
161
|
beforeStages,
|
|
162
162
|
testStage: testStage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/plugin-allure2",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.0",
|
|
4
4
|
"description": "The classic version of Allure HTML report",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"lint:fix": "oxlint --import-plugin --fix src test features stories"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@allurereport/core-api": "3.
|
|
34
|
-
"@allurereport/plugin-api": "3.
|
|
33
|
+
"@allurereport/core-api": "3.14.0",
|
|
34
|
+
"@allurereport/plugin-api": "3.14.0",
|
|
35
35
|
"find-up": "^8.0.0",
|
|
36
36
|
"handlebars": "^4.7.9"
|
|
37
37
|
},
|