-
Notifications
You must be signed in to change notification settings - Fork 12
/
options.js
95 lines (74 loc) · 2.35 KB
/
options.js
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
module.exports = () => ({
// logging levels: off, error, info, debug
logging: 'info',
// the report name
name: '',
// the output html file path (relative process.cwd)
outputFile: './monocart-report/index.html',
json: true,
zip: false,
// whether to copy attachments to the reporter output dir, defaults to true
// it is useful when there are multiple html reports being output.
copyAttachments: true,
// attachment path handler
attachmentPath: null,
// attachmentPath: (currentPath, extras) => `https://cenfun.github.io/monocart-reporter/${currentPath}`,
// custom trace viewer url
traceViewerUrl: 'https://trace.playwright.dev/?trace={traceUrl}',
// timezone offset in minutes, GMT+0800 = -480
timezoneOffset: 0,
// normal or exclude-idle
durationStrategy: null,
// global coverage settings for addCoverageReport API
coverage: null,
// coverage: {
// entryFilter: (entry) => true,
// sourceFilter: (sourcePath) => sourcePath.search(/src\/.+/) !== -1,
// },
// Global State Management
state: null,
// trend data handler
trend: null,
// trend: () => './monocart-report/index.json',
// custom tags style
tags: null,
// tags: {
// smoke: {
// 'background': '#6F9913'
// },
// sanity: {
// 'background': '#178F43'
// }
// },
// columns data handler
columns: null,
// columns: (defaultColumns) => {},
// rows data handler (suite, case and step)
visitor: null,
// visitor: (data, metadata) => {},
// enable/disable custom fields in comments. Defaults to true.
customFieldsInComments: true,
// mermaid options
mermaid: null,
// mermaid: {
// scriptSrc: 'https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js',
// // mermaid config https://mermaid.js.org/config/schema-docs/config.html
// config: {
// startOnLoad: false
// }
// },
// enable/disable group or levels
groupOptions: null,
// groupOptions: {
// group: true,
// shard: true,
// project: true,
// file: true,
// describe: true,
// step: false,
// merge: false
// },
// onEnd hook
onEnd: null
// onEnd: async (reportData, helper) => {}
});