allure 3.13.1 → 3.13.2
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/commands/run.js +6 -8
- package/package.json +21 -21
package/dist/commands/run.js
CHANGED
|
@@ -5,7 +5,6 @@ import { AllureReport, isFileNotFoundError, readConfig } from "@allurereport/cor
|
|
|
5
5
|
import Awesome from "@allurereport/plugin-awesome";
|
|
6
6
|
import { serve } from "@allurereport/static-server";
|
|
7
7
|
import { Command, Option, UsageError } from "clipanion";
|
|
8
|
-
import { red } from "yoctocolors";
|
|
9
8
|
import { environmentNameOption, environmentOption, normalizeCommandEnvironmentOptions, resolveCommandEnvironment, } from "../utils/environment.js";
|
|
10
9
|
import { createChildAllureCliEnvironment, getActiveAllureCliCommand } from "../utils/execution-context.js";
|
|
11
10
|
import { executeAllureRun, executeNestedAllureCommand } from "./commons/run.js";
|
|
@@ -31,7 +30,7 @@ export class RunCommand extends Command {
|
|
|
31
30
|
description: "The report name (default: Allure Report)",
|
|
32
31
|
});
|
|
33
32
|
this.rerun = Option.String("--rerun", {
|
|
34
|
-
description: "The number of reruns for failed tests (default: 0)",
|
|
33
|
+
description: "The number of reruns for failed tests. Quality gate validation is skipped when rerun is greater than 0 (default: 0)",
|
|
35
34
|
});
|
|
36
35
|
this.silent = Option.Boolean("--silent", {
|
|
37
36
|
description: "Don't pipe the process output logs to console (default: 0)",
|
|
@@ -98,12 +97,10 @@ export class RunCommand extends Command {
|
|
|
98
97
|
historyLimit: this.historyLimit ? parseInt(this.historyLimit, 10) : undefined,
|
|
99
98
|
});
|
|
100
99
|
const resolvedEnvironment = resolveCommandEnvironment(config, environmentOptions);
|
|
101
|
-
const
|
|
102
|
-
const
|
|
103
|
-
if (
|
|
104
|
-
console.
|
|
105
|
-
console.error(red("Consider using --rerun=0 or disable quality gate in the config to run tests"));
|
|
106
|
-
exit(-1);
|
|
100
|
+
const withRerun = maxRerun > 0;
|
|
101
|
+
const withQualityGate = !!config.qualityGate && !withRerun;
|
|
102
|
+
if (config.qualityGate && withRerun) {
|
|
103
|
+
console.warn("Quality gate doesn't work with rerun; skipping quality gate validation.");
|
|
107
104
|
}
|
|
108
105
|
try {
|
|
109
106
|
await rm(config.output, { recursive: true });
|
|
@@ -116,6 +113,7 @@ export class RunCommand extends Command {
|
|
|
116
113
|
const allureReport = new AllureReport({
|
|
117
114
|
...config,
|
|
118
115
|
environment: resolvedEnvironment?.id,
|
|
116
|
+
qualityGate: withQualityGate ? config.qualityGate : undefined,
|
|
119
117
|
dump: this.dump,
|
|
120
118
|
realTime: false,
|
|
121
119
|
plugins: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "allure",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.2",
|
|
4
4
|
"description": "Allure Commandline Tool",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -32,26 +32,26 @@
|
|
|
32
32
|
"lint:fix": "oxlint --import-plugin --fix src test features stories"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@allurereport/charts-api": "3.13.
|
|
36
|
-
"@allurereport/ci": "3.13.
|
|
37
|
-
"@allurereport/core": "3.13.
|
|
38
|
-
"@allurereport/core-api": "3.13.
|
|
39
|
-
"@allurereport/directory-watcher": "3.13.
|
|
40
|
-
"@allurereport/plugin-agent": "3.13.
|
|
41
|
-
"@allurereport/plugin-allure2": "3.13.
|
|
42
|
-
"@allurereport/plugin-api": "3.13.
|
|
43
|
-
"@allurereport/plugin-awesome": "3.13.
|
|
44
|
-
"@allurereport/plugin-classic": "3.13.
|
|
45
|
-
"@allurereport/plugin-csv": "3.13.
|
|
46
|
-
"@allurereport/plugin-dashboard": "3.13.
|
|
47
|
-
"@allurereport/plugin-jira": "3.13.
|
|
48
|
-
"@allurereport/plugin-log": "3.13.
|
|
49
|
-
"@allurereport/plugin-progress": "3.13.
|
|
50
|
-
"@allurereport/plugin-server-reload": "3.13.
|
|
51
|
-
"@allurereport/plugin-slack": "3.13.
|
|
52
|
-
"@allurereport/reader-api": "3.13.
|
|
53
|
-
"@allurereport/service": "3.13.
|
|
54
|
-
"@allurereport/static-server": "3.13.
|
|
35
|
+
"@allurereport/charts-api": "3.13.2",
|
|
36
|
+
"@allurereport/ci": "3.13.2",
|
|
37
|
+
"@allurereport/core": "3.13.2",
|
|
38
|
+
"@allurereport/core-api": "3.13.2",
|
|
39
|
+
"@allurereport/directory-watcher": "3.13.2",
|
|
40
|
+
"@allurereport/plugin-agent": "3.13.2",
|
|
41
|
+
"@allurereport/plugin-allure2": "3.13.2",
|
|
42
|
+
"@allurereport/plugin-api": "3.13.2",
|
|
43
|
+
"@allurereport/plugin-awesome": "3.13.2",
|
|
44
|
+
"@allurereport/plugin-classic": "3.13.2",
|
|
45
|
+
"@allurereport/plugin-csv": "3.13.2",
|
|
46
|
+
"@allurereport/plugin-dashboard": "3.13.2",
|
|
47
|
+
"@allurereport/plugin-jira": "3.13.2",
|
|
48
|
+
"@allurereport/plugin-log": "3.13.2",
|
|
49
|
+
"@allurereport/plugin-progress": "3.13.2",
|
|
50
|
+
"@allurereport/plugin-server-reload": "3.13.2",
|
|
51
|
+
"@allurereport/plugin-slack": "3.13.2",
|
|
52
|
+
"@allurereport/reader-api": "3.13.2",
|
|
53
|
+
"@allurereport/service": "3.13.2",
|
|
54
|
+
"@allurereport/static-server": "3.13.2",
|
|
55
55
|
"adm-zip": "^0.5.16",
|
|
56
56
|
"clipanion": "^4.0.0-rc.4",
|
|
57
57
|
"glob": "^13.0.6",
|