This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 280
/
Copy pathoptions.coffee
172 lines (137 loc) · 4.82 KB
/
options.coffee
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
161
162
163
164
165
166
167
168
169
170
171
172
options =
"dry-run":
alias: 'y'
description: 'Do not run any real HTTP transaction, only parse API description document and compile transactions.'
default: null
hookfiles:
alias: 'f'
description: """Specifies a pattern to match files with before/after hooks for running tests. \
Files are executed in alphabetical order."""
default: null
language:
alias: "a"
description: "Language of hookfiles. Possible options are: nodejs, ruby, python, php, perl, go, rust"
default: "nodejs"
sandbox:
alias: 'b'
description: "Load and run non trusted hooks code in sandboxed container"
default: false
server:
alias: 'g'
description: 'Run API backend server command and kill it after Dredd execution. E.g. `rails server`'
default: null
"server-wait":
description: "Set delay time in seconds between running a server and test run."
default: 3
init:
alias: 'i'
description: "Run interactive configuration. Creates dredd.yml configuration file."
default: false
custom:
alias: 'j'
description: "Pass custom key-value configuration data delimited by a colon. E.g. -j 'a:b'"
default: []
names:
alias: 'n'
description: 'Only list names of requests (for use in a hookfile). No requests are made.'
default: false
only:
alias: "x"
description: "Run only specified transaction name. Can be used multiple times"
default: []
reporter:
alias: "r"
description: """Output additional report format. This option can be used \
multiple times to add multiple reporters. \
Options: xunit, nyan, dot, markdown, html, apiary.\n"""
default: []
output:
alias: "o"
description: """
Specifies output file when using additional file-based reporter. \
This option can be used multiple times if multiple file-based reporters are used.\n"""
default: []
header:
alias: "h"
description: """
Extra header to include in every request. \
This option can be used multiple times to add multiple headers.\n"""
default: []
sorted:
alias: "s"
description: """
Sorts requests in a sensible way so that objects are not modified before they are created. \
Order: CONNECT, OPTIONS, POST, GET, HEAD, PUT, PATCH, DELETE, TRACE.\n"""
default: false
user:
alias: "u"
description: "Basic Auth credentials in the form username:password.\n"
default: null
"inline-errors":
alias: "e"
description: """
Determines whether failures and errors are displayed as they \
occur (true) or aggregated and displayed at the end (false).\n"""
default: false
details:
alias: "d"
description: "Determines whether request/response details are included in passing tests.\n"
default: false
method:
alias: "m"
description: """
Restrict tests to a particular HTTP method (GET, PUT, POST, DELETE, PATCH). \
This option can be used multiple times to allow multiple methods.\n"""
default: []
color:
alias: "c"
description: "Determines whether console output should include colors.\n"
default: true
level:
alias: "l"
description: "The level of logging to output. Options: silly, debug, verbose, info, warn, error.\n"
default: "info"
timestamp:
alias: "t"
description: "Determines whether console output should include timestamps.\n"
default: false
silent:
alias: "q"
description: "Silences commandline output.\n"
default: false
path:
alias: "p"
description: "Additional API description paths or URLs. Can be used multiple times with glob pattern for paths."
default: []
help:
description: "Show usage information.\n"
version:
description: "Show version number.\n"
'hooks-worker-timeout':
description: "How long to wait for hooks worker to start. [ms]"
default: 5000
'hooks-worker-connect-timeout':
description: 'Total hook worker connection timeout (includes all retries). [ms]'
default: 1500
'hooks-worker-connect-retry':
description: 'How long to wait between attempts to connect to hooks worker. [ms]'
default: 500
'hooks-worker-after-connect-wait':
description: 'How long to wait between connecting to hooks worker and start of testing. [ms]'
default: 100
'hooks-worker-term-timeout':
description: 'How long to wait between trying to terminate hooks worker and killing it. [ms]'
default: 5000
'hooks-worker-term-retry':
description: 'How long to wait between attempts to terminate hooks worker. [ms]'
default: 500
'hooks-worker-handler-host':
description: 'Host of the hook worker.'
default: '127.0.0.1'
'hooks-worker-handler-port':
description: 'Port of the hook worker.'
default: 61321
config:
description: 'Path to dredd.yml config file.'
default: './dredd.yml'
module.exports = options