-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathallurerc.mjs
More file actions
111 lines (107 loc) · 3.61 KB
/
allurerc.mjs
File metadata and controls
111 lines (107 loc) · 3.61 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import { defineConfig } from "allure";
const PROJECTS = {
KANVAS: "Kanvas",
MESHERY: "Meshery",
LAYER5_REMOTE_PROVIDER: "Layer5Cloud",
MESHERYCTL: "mesheryctl",
// EXTENSION POINT (see https://docs.meshery.io/extensibility)
// OPEN AN ISSUE TO ADD TEST RESULTS FROM YOUR EXTENSION HERE.
// EXTENSION POINT
};
const isProject = (labels, projectName) =>
labels.find(({ name, value }) => name === "project" && value === projectName);
export default defineConfig({
name: "Meshery Quality Dashboard",
output: "./allure-report",
historyPath: "./history.json",
plugins: {
dashboard: {
options: {
singleFile: true,
reportName: "Dashboard",
reportLanguage: "en",
logo: "https://raw.githubusercontent.com/meshery-extensions/qa/refs/heads/master/.github/assets/images/meshery/icon-only/meshery-light-icon.svg",
},
},
// awesome: {
// options: {
// singleFile: false,
// reportName: "Dashboard",
// reportLanguage: "en",
// logo: "https://raw.githubusercontent.com/meshery-extensions/qa/refs/heads/master/.github/assets/images/meshery/icon-only/meshery-light-icon.svg",
// reportName: "Aggregate Dashboard",
// charts:
// [{
// "type": "pie",
// "title": "Test Type Distribution",
// "data": {
// "API Tests": 80,
// "UI Tests": 20
// },
// }
// ],
// publish: true,
// },
// },
meshery: {
import: "@allurereport/plugin-awesome",
options: {
reportName: "Meshery",
singleFile: false,
reportLanguage: "en",
open: false,
logo: "https://raw.githubusercontent.com/meshery-extensions/qa/refs/heads/master/.github/assets/images/meshery/icon-only/meshery-light-icon.svg",
filter: ({ labels }) => isProject(labels, PROJECTS.MESHERY),
},
},
mesheryctl: {
import: "@allurereport/plugin-awesome",
options: {
reportName: "Mesheryctl",
singleFile: false,
reportLanguage: "en",
open: false,
logo: "https://raw.githubusercontent.com/meshery-extensions/qa/refs/heads/master/.github/assets/images/meshery/icon-only/meshery-light-icon.svg",
filter: ({ labels }) => isProject(labels, PROJECTS.MESHERYCTL),
},
},
// EXTENSION POINT (see https://docs.meshery.io/extensibility)
// OPEN AN ISSUE TO ADD TEST RESULTS FROM YOUR EXTENSION HERE.
// EXTENSION POINT
layer5Cloud: {
import: "@allurereport/plugin-awesome",
options: {
reportName: "Extension: Remote Provider Layer5 Cloud",
singleFile: false,
reportLanguage: "en",
open: false,
logo: "https://raw.githubusercontent.com/meshery-extensions/qa/refs/heads/master/.github/assets/images/layer5/svg/light/5-light-no-trim.svg",
filter: ({ labels }) =>
isProject(labels, PROJECTS.LAYER5_REMOTE_PROVIDER),
},
},
kanvas: {
import: "@allurereport/plugin-awesome",
options: {
reportName: "Extension: Kanvas",
singleFile: false,
reportLanguage: "en",
open: false,
logo: "https://raw.githubusercontent.com/meshery-extensions/qa/refs/heads/master/.github/assets/images/kanvas/kanvas-icon-color-trim.svg",
filter: ({ labels }) => isProject(labels, PROJECTS.KANVAS),
// Suite-based hierarchy
groupBy: ["parentSuite", "suite", "subSuite"],
},
},
log: {
options: {
groupBy: "none",
},
},
csv: {
options: {
fileName: "report.csv",
},
},
},
});