-
Notifications
You must be signed in to change notification settings - Fork 56
/
configuration.ts
160 lines (139 loc) · 3.15 KB
/
configuration.ts
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
import { DisplayProcessor } from './display-processor'
export enum StacktraceOption {
NONE = 'none',
RAW = 'raw',
PRETTY = 'pretty',
}
export class Configuration {
public suite?: {
/**
* display each suite number (hierarchical)
*/
displayNumber?: boolean
}
public spec?: {
/**
* display error messages for each failed assertion
*/
displayErrorMessages?: boolean
/**
* display stacktrace for each failed assertion
*/
displayStacktrace?: StacktraceOption
/**
* display each successful spec
*/
displaySuccessful?: boolean
/**
* display each failed spec
*/
displayFailed?: boolean
/**
* display each pending spec
*/
displayPending?: boolean
/**
* display each spec duration
*/
displayDuration?: boolean
}
public summary?: {
/**
* display error messages for each failed assertion
*/
displayErrorMessages?: boolean
/**
* display stacktrace for each failed assertion
*/
displayStacktrace?: StacktraceOption
/**
* display summary of all successes after execution
*/
displaySuccessful?: boolean
/**
* display summary of all failures after execution
*/
displayFailed?: boolean
/**
* display summary of all pending specs after execution
*/
displayPending?: boolean
/**
* display execution duration
*/
displayDuration?: boolean
}
/**
* colors are displayed in the console via colors package: https://github.com/Marak/colors.js.
* You can see all available colors on the project page.
*/
public colors?: {
/**
* enable colors
*/
enabled?: boolean
/**
* color for successful spec
*/
successful?: string
/**
* color for failing spec
*/
failed?: string
/**
* color for pending spec
*/
pending?: string
/**
* color for pretty stacktrace filename
*/
prettyStacktraceFilename?: string
/**
* color for pretty stacktrace line number
*/
prettyStacktraceLineNumber?: string
/**
* color for pretty stacktrace column number
*/
prettyStacktraceColumnNumber?: string
/**
* color for pretty stacktrace error
*/
prettyStacktraceError?: string
}
public prefixes?: {
/**
* prefix for successful spec
*/
successful?: string
/**
* prefix for failing spec
*/
failed?: string
/**
* prefix for pending spec
*/
pending?: string
}
public stacktrace?: {
/**
* customize stacktrace filtering
*/
filter?(stacktrace: string): string
}
/**
* list of display processor to customize output
* see https://github.com/bcaudan/jasmine-spec-reporter/blob/master/docs/customize-output.md
*/
public customProcessors?: typeof DisplayProcessor[]
/**
* options for custom processors
*/
public customOptions?: any
/**
* low-level printing function, defaults to console.log.
* Use process.stdout.write(log + '\n'); to avoid output to
* devtools console while still reporting to command line.
*/
public print?: (log: string) => void
}