-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathallurerc.mjs
More file actions
80 lines (76 loc) · 1.86 KB
/
Copy pathallurerc.mjs
File metadata and controls
80 lines (76 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import { defineConfig } from "allure";
import { qualityGateDefaultRules } from "allure/rules";
import { env } from "node:process";
const { ALLURE_SERVICE_URL, ALLURE_SERVICE_ACCESS_TOKEN, ALLURE_SERVICE_PROJECT } = env;
/**
* @type {import("allure").AllureConfig}
*/
const config = {
name: "Allure Report 3",
output: "./out/allure-report",
plugins: {
awesome: {
options: {
singleFile: false,
reportLanguage: "en",
reportName: "Allure 3 Report",
groupBy: ["module", "parentSuite", "suite", "subSuite"],
timeline: {
minDuration: 0,
},
publish: true,
},
},
log: {
options: {
groupBy: "none",
filter: ({ status }) => status === "failed" || status === "broken",
},
},
dashboard: {
options: {
singleFile: false,
reportName: "My Dashboard",
reportLanguage: "en",
publish: true,
},
},
},
variables: {
env_variable: "unknown",
},
environments: {
foo: {
variables: {
env_variable: "foo",
env_specific_variable: "foo",
},
matcher: ({ labels }) => labels.some(({ name, value }) => name === "env" && value === "foo"),
},
bar: {
variables: {
env_variable: "bar",
env_specific_variable: "bar",
},
matcher: ({ labels }) => labels.some(({ name, value }) => name === "env" && value === "bar"),
},
},
qualityGate: {
rules: [
{
maxFailures: 0,
fastFail: true,
},
],
use: [...qualityGateDefaultRules],
},
};
if (ALLURE_SERVICE_URL && ALLURE_SERVICE_ACCESS_TOKEN && ALLURE_SERVICE_PROJECT) {
config.allureService = {
url: ALLURE_SERVICE_URL,
project: ALLURE_SERVICE_PROJECT,
accessToken: ALLURE_SERVICE_ACCESS_TOKEN,
publish: true,
};
}
export default defineConfig(config);