1App::Yath::Command::faiUlseedr(3C)ontributed Perl DocumeAnptpa:t:iYoanth::Command::failed(3)
2
3
4
6 App::Yath::Command::failed - Replay a test run from an event log
7
9 This yath command will re-run the harness against an event log produced
10 by a previous test run. The only required argument is the path to the
11 log file, which maybe compressed. Any extra arguments are assumed to be
12 job id's. If you list any jobs, only listed jobs will be processed.
13
14 This command accepts all the same renderer/formatter options that the
15 'test' command accepts.
16
18 $ yath [YATH OPTIONS] failed [COMMAND OPTIONS]
19
20 YATH OPTIONS
21 Developer
22
23 --dev-lib
24 --dev-lib=lib
25 -D
26 -D=lib
27 -Dlib
28 --no-dev-lib
29 Add paths to @INC before loading ANYTHING. This is what you use if
30 you are developing yath or yath plugins to make sure the yath
31 script finds the local code instead of the installed versions of
32 the same code. You can provide an argument (-Dfoo) to provide a
33 custom path, or you can just use -D without and arg to add lib,
34 blib/lib and blib/arch.
35
36 Can be specified multiple times
37
38 Environment
39
40 --persist-dir ARG
41 --persist-dir=ARG
42 --no-persist-dir
43 Where to find persistence files.
44
45 --persist-file ARG
46 --persist-file=ARG
47 --pfile ARG
48 --pfile=ARG
49 --no-persist-file
50 Where to find the persistence file. The default is
51 /{system-tempdir}/project-yath-persist.json. If no project is
52 specified then it will fall back to the current directory. If the
53 current directory is not writable it will default to
54 /tmp/yath-persist.json which limits you to one persistent runner on
55 your system.
56
57 --project ARG
58 --project=ARG
59 --project-name ARG
60 --project-name=ARG
61 --no-project
62 This lets you provide a label for your current project/codebase.
63 This is best used in a .yath.rc file. This is necessary for a
64 persistent runner.
65
66 Help and Debugging
67
68 --show-opts
69 --no-show-opts
70 Exit after showing what yath thinks your options mean
71
72 --version
73 -V
74 --no-version
75 Exit after showing a helpful usage message
76
77 Plugins
78
79 --no-scan-plugins
80 --no-no-scan-plugins
81 Normally yath scans for and loads all App::Yath::Plugin::* modules
82 in order to bring in command-line options they may provide. This
83 flag will disable that. This is useful if you have a naughty plugin
84 that it loading other modules when it should not.
85
86 --plugins PLUGIN
87 --plugins +App::Yath::Plugin::PLUGIN
88 --plugins PLUGIN=arg1,arg2,...
89 --plugin PLUGIN
90 --plugin +App::Yath::Plugin::PLUGIN
91 --plugin PLUGIN=arg1,arg2,...
92 -pPLUGIN
93 --no-plugins
94 Load a yath plugin.
95
96 Can be specified multiple times
97
98 COMMAND OPTIONS
99 Cover Options
100
101 --cover-aggregator ByTest
102 --cover-aggregator ByRun
103 --cover-aggregator +Custom::Aggregator
104 --cover-agg ByTest
105 --cover-agg ByRun
106 --cover-agg +Custom::Aggregator
107 --no-cover-aggregator
108 Choose a custom aggregator subclass
109
110 --cover-class ARG
111 --cover-class=ARG
112 --no-cover-class
113 Choose a Test2::Plugin::Cover subclass
114
115 --cover-dirs ARG
116 --cover-dirs=ARG
117 --cover-dir ARG
118 --cover-dir=ARG
119 --no-cover-dirs
120 NO DESCRIPTION - FIX ME
121
122 Can be specified multiple times
123
124 --cover-exclude-private
125 --no-cover-exclude-private
126 --cover-files
127 --no-cover-files
128 Use Test2::Plugin::Cover to collect coverage data for what files
129 are touched by what tests. Unlike Devel::Cover this has very little
130 performance impact (About 4% difference)
131
132 --cover-from path/to/log.jsonl
133 --cover-from http://example.com/coverage
134 --cover-from path/to/coverage.jsonl
135 --no-cover-from
136 This can be a test log, a coverage dump (old style json or new
137 jsonl format), or a url to any of the previous. Tests will not be
138 run if the file/url is invalid.
139
140 --cover-from-type json
141 --cover-from-type jsonl
142 --cover-from-type log
143 --no-cover-from-type
144 File type for coverage source. Usually it can be detected, but when
145 it cannot be you should specify. "json" is old style single-blob
146 coverage data, "jsonl" is the new by-test style, "log" is a logfile
147 from a previous run.
148
149 --cover-manager My::Coverage::Manager
150 --no-cover-manager
151 Coverage 'from' manager to use when coverage data does not provide
152 one
153
154 --cover-maybe-from path/to/log.jsonl
155 --cover-maybe-from http://example.com/coverage
156 --cover-maybe-from path/to/coverage.jsonl
157 --no-cover-maybe-from
158 This can be a test log, a coverage dump (old style json or new
159 jsonl format), or a url to any of the previous. Tests will coninue
160 if even if the coverage file/url is invalid.
161
162 --cover-maybe-from-type json
163 --cover-maybe-from-type jsonl
164 --cover-maybe-from-type log
165 --no-cover-maybe-from-type
166 Same as "from_type" but for "maybe_from". Defaults to "from_type"
167 if that is specified, otherwise auto-detect
168
169 --cover-metrics
170 --no-cover-metrics
171 --cover-types ARG
172 --cover-types=ARG
173 --cover-type ARG
174 --cover-type=ARG
175 --no-cover-types
176 NO DESCRIPTION - FIX ME
177
178 Can be specified multiple times
179
180 --cover-write
181 --cover-write=coverage.jsonl
182 --cover-write=coverage.json
183 --no-cover-write
184 Create a json or jsonl file of all coverage data seen during the
185 run (This implies --cover-files).
186
187 Display Options
188
189 --brief
190 --no-brief
191 Show only files that failed, newline separated, no other output. If
192 a file dailed once but passed on a retry it will NOT be shown.
193
194 Git Options
195
196 --git-change-base master
197 --git-change-base HEAD^
198 --git-change-base df22abe4
199 --no-git-change-base
200 Find files changed by all commits in the current branch from most
201 recent stopping when a commit is found that is also present in the
202 history of the branch/commit specified as the change base.
203
204 Help and Debugging
205
206 --dummy
207 -d
208 --no-dummy
209 Dummy run, do not actually execute anything
210
211 Can also be set with the following environment variables:
212 "T2_HARNESS_DUMMY"
213
214 --help
215 -h
216 --no-help
217 exit after showing help information
218
219 --interactive
220 -i
221 --no-interactive
222 Use interactive mode, 1 test at a time, stdin forwarded to it
223
224 --keep-dirs
225 --keep_dir
226 -k
227 --no-keep-dirs
228 Do not delete directories when done. This is useful if you want to
229 inspect the directories used for various commands.
230
231 YathUI Options
232
233 --yathui-api-key ARG
234 --yathui-api-key=ARG
235 --no-yathui-api-key
236 Yath-UI API key. This is not necessary if your Yath-UI instance is
237 set to single-user
238
239 --yathui-db
240 --no-yathui-db
241 Add the YathUI DB renderer in addition to other renderers
242
243 --yathui-grace
244 --no-yathui-grace
245 If yath cannot connect to yath-ui it normally throws an error, use
246 this to make it fail gracefully. You get a warning, but things keep
247 going.
248
249 --yathui-long-duration 10
250 --no-yathui-long-duration
251 Minimum duration length (seconds) before a test goes from MEDIUM to
252 LONG
253
254 --yathui-medium-duration 5
255 --no-yathui-medium-duration
256 Minimum duration length (seconds) before a test goes from SHORT to
257 MEDIUM
258
259 --yathui-mode summary
260 --yathui-mode qvf
261 --yathui-mode qvfd
262 --yathui-mode complete
263 --no-yathui-mode
264 Set the upload mode (default 'qvfd')
265
266 --yathui-only
267 --no-yathui-only
268 Only use the YathUI renderer
269
270 --yathui-only-db
271 --no-yathui-only-db
272 Only use the YathUI DB renderer
273
274 --yathui-port 8080
275 --no-yathui-port
276 Port to use when running a local server
277
278 --yathui-port-command get_port.sh
279 --yathui-port-command get_port.sh --pid $$
280 --no-yathui-port-command
281 Use a command to get a port number. "$$" will be replaced with the
282 PID of the yath process
283
284 --yathui-project ARG
285 --yathui-project=ARG
286 --no-yathui-project
287 The Yath-UI project for your test results
288
289 --yathui-render
290 --no-yathui-render
291 Add the YathUI renderer in addition to other renderers
292
293 --yathui-retry
294 --no-yathui-retry
295 How many times to try an operation before giving up
296
297 Can be specified multiple times
298
299 --yathui-schema PostgreSQL
300 --yathui-schema MySQL
301 --yathui-schema MySQL56
302 --no-yathui-schema
303 What type of DB/schema to use when using a temporary database
304
305 --yathui-url http://my-yath-ui.com/...
306 --uri http://my-yath-ui.com/...
307 --no-yathui-url
308 Yath-UI url
309
310 --yathui-user ARG
311 --yathui-user=ARG
312 --no-yathui-user
313 Username to attach to the data sent to the db
314
315 --yathui-db-buffering none
316 --yathui-db-buffering job
317 --yathui-db-buffering diag
318 --yathui-db-buffering run
319 --no-yathui-db-buffering
320 Type of buffering to use, if "none" then events are written to the
321 db one at a time, which is SLOW
322
323 --yathui-db-config ARG
324 --yathui-db-config=ARG
325 --no-yathui-db-config
326 Module that implements 'MODULE->yath_ui_config(%params)' which
327 should return a Test2::Harness::UI::Config instance.
328
329 --yathui-db-coverage
330 --no-yathui-db-coverage
331 Pull coverage data directly from the database (default: off)
332
333 --yathui-db-driver Pg
334 --yathui-db-drivermysql
335 --yathui-db-driverMariaDB
336 --no-yathui-db-driver
337 DBI Driver to use
338
339 --yathui-db-dsn ARG
340 --yathui-db-dsn=ARG
341 --no-yathui-db-dsn
342 DSN to use when connecting to the db
343
344 --yathui-db-durations
345 --no-yathui-db-durations
346 Pull duration data directly from the database (default: off)
347
348 --yathui-db-flush-interval 2
349 --yathui-db-flush-interval 1.5
350 --no-yathui-db-flush-interval
351 When buffering DB writes, force a flush when an event is recieved
352 at least N seconds after the last flush.
353
354 --yathui-db-host ARG
355 --yathui-db-host=ARG
356 --no-yathui-db-host
357 hostname to use when connecting to the db
358
359 --yathui-db-name ARG
360 --yathui-db-name=ARG
361 --no-yathui-db-name
362 Name of the database to use for yathui
363
364 --yathui-db-pass ARG
365 --yathui-db-pass=ARG
366 --no-yathui-db-pass
367 Password to use when connecting to the db
368
369 --yathui-db-port ARG
370 --yathui-db-port=ARG
371 --no-yathui-db-port
372 port to use when connecting to the db
373
374 --yathui-db-publisher ARG
375 --yathui-db-publisher=ARG
376 --no-yathui-db-publisher
377 When using coverage or duration data, only use data uploaded by
378 this user
379
380 --yathui-db-socket ARG
381 --yathui-db-socket=ARG
382 --no-yathui-db-socket
383 socket to use when connecting to the db
384
385 --yathui-db-user ARG
386 --yathui-db-user=ARG
387 --no-yathui-db-user
388 Username to use when connecting to the db
389
391 The source code repository for Test2-Harness can be found at
392 http://github.com/Test-More/Test2-Harness/.
393
395 Chad Granum <exodist@cpan.org>
396
398 Chad Granum <exodist@cpan.org>
399
401 Copyright 2021 Chad Granum <exodist7@gmail.com>.
402
403 This program is free software; you can redistribute it and/or modify it
404 under the same terms as Perl itself.
405
406 See http://dev.perl.org/licenses/
407
408
409
410perl v5.34.0 2021-11-05 App::Yath::Command::failed(3)