nextest-runner 0.117.0

Core runner logic for cargo nextest.
Documentation
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DeserializedUserConfig",
  "description": "Per-user nextest configuration.\n\nStores personal preferences such as UI defaults and recording behavior.\nThis is distinct from the repository config (`.config/nextest.toml`),\nwhich controls test execution.\n\nSee [_User configuration reference_](https://nexte.st/docs/user-config/reference)\nfor details on each setting.",
  "type": "object",
  "properties": {
    "experimental": {
      "description": "Toggles for experimental, non-stable features.\n\n```toml\n[experimental]\nrecord = true\n```",
      "$ref": "#/$defs/ExperimentalConfig"
    },
    "overrides": {
      "description": "Platform-specific overrides applied on top of the base configuration.\n\nEach entry specifies a `platform` filter and any number of settings to\nsubstitute when that filter matches. For each setting, the first\nmatching override wins; the base configuration is used if no override\nmatches.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/DeserializedOverride"
      }
    },
    "record": {
      "description": "Retention settings for the record-replay-rerun feature.",
      "$ref": "#/$defs/DeserializedRecordConfig"
    },
    "ui": {
      "description": "Display, progress, and pager settings.",
      "$ref": "#/$defs/DeserializedUiConfig"
    }
  },
  "additionalProperties": false,
  "x-tombi-toml-version": "v1.1.0",
  "$defs": {
    "CommandNameAndArgs": {
      "title": "CommandNameAndArgs",
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "pattern": "\\S"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        {
          "type": "object",
          "properties": {
            "command": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 1
            },
            "env": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false,
          "required": [
            "command"
          ]
        }
      ]
    },
    "DeserializedOverride": {
      "description": "A single platform-specific override entry.",
      "type": "object",
      "properties": {
        "platform": {
          "description": "Target-spec expression selecting which platforms this override applies\nto.\n\nAccepts a target triple (e.g. `x86_64-unknown-linux-gnu`) or a `cfg()`\nexpression (e.g. `cfg(windows)`, `cfg(target_os = \"macos\")`). Matched\nagainst the platform nextest was built for.",
          "type": "string"
        },
        "record": {
          "description": "Record retention settings to substitute on matching platforms.",
          "$ref": "#/$defs/DeserializedRecordOverrideData"
        },
        "ui": {
          "description": "UI settings to substitute on matching platforms.",
          "$ref": "#/$defs/DeserializedUiOverrideData"
        }
      },
      "additionalProperties": false,
      "required": [
        "platform"
      ]
    },
    "DeserializedRecordConfig": {
      "description": "Retention policy for recorded test runs.\n\nRecording only happens when the `record` experimental feature is enabled\n_and_ `enabled` here is true. The least-recently-used runs are evicted to\nkeep within `max-records`, `max-total-size`, and `max-age`.",
      "type": "object",
      "properties": {
        "enabled": {
          "description": "Whether to record test runs.\n\nSet to false to temporarily disable recording without removing the rest\nof the configuration. Has no effect unless the `record` experimental\nfeature is also enabled.",
          "type": [
            "boolean",
            "null"
          ],
          "default": null
        },
        "max-age": {
          "description": "Maximum idle time before a recorded run is evicted (e.g. `\"30d\"`).",
          "type": [
            "string",
            "null"
          ],
          "default": null
        },
        "max-output-size": {
          "description": "Maximum size of a single captured stdout or stderr stream before it is\ntruncated (e.g. `\"10MB\"`).",
          "type": [
            "string",
            "null"
          ],
          "default": null
        },
        "max-records": {
          "description": "Maximum number of recorded runs to retain.",
          "type": [
            "integer",
            "null"
          ],
          "format": "uint",
          "default": null,
          "minimum": 0
        },
        "max-total-size": {
          "description": "Maximum combined size of all recorded runs (e.g. `\"1GB\"`).",
          "type": [
            "string",
            "null"
          ],
          "default": null
        }
      },
      "additionalProperties": false
    },
    "DeserializedRecordOverrideData": {
      "description": "Per-platform substitutions for `[record]` settings.\n\nEach field has the same meaning as in the `[record]` table. Only the\nfields actually set here are substituted on matching platforms.",
      "type": "object",
      "properties": {
        "enabled": {
          "description": "Whether to record test runs.",
          "type": [
            "boolean",
            "null"
          ],
          "default": null
        },
        "max-age": {
          "description": "Maximum idle time before a recorded run is evicted (e.g. `\"30d\"`).",
          "type": [
            "string",
            "null"
          ],
          "default": null
        },
        "max-output-size": {
          "description": "Maximum size of a single captured stdout or stderr stream before it is\ntruncated (e.g. `\"10MB\"`).",
          "type": [
            "string",
            "null"
          ],
          "default": null
        },
        "max-records": {
          "description": "Maximum number of recorded runs to retain.",
          "type": [
            "integer",
            "null"
          ],
          "format": "uint",
          "default": null,
          "minimum": 0
        },
        "max-total-size": {
          "description": "Maximum combined size of all recorded runs (e.g. `\"1GB\"`).",
          "type": [
            "string",
            "null"
          ],
          "default": null
        }
      },
      "additionalProperties": false
    },
    "DeserializedStreampagerConfig": {
      "description": "Settings for nextest's built-in pager (active when `pager = \":builtin\"`).",
      "type": "object",
      "properties": {
        "interface": {
          "description": "How the pager uses the alternate screen and when it exits.",
          "anyOf": [
            {
              "$ref": "#/$defs/StreampagerInterface"
            },
            {
              "type": "null"
            }
          ]
        },
        "show-ruler": {
          "description": "Shows a ruler at the bottom of the pager.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "wrapping": {
          "description": "How long lines are wrapped.",
          "anyOf": [
            {
              "$ref": "#/$defs/StreampagerWrapping"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "DeserializedUiConfig": {
      "description": "Display, progress, and pager settings.",
      "type": "object",
      "properties": {
        "input-handler": {
          "description": "Enables the interactive keyboard input handler (e.g. `t` to dump test\nstatus, `Enter` to print a summary line).",
          "type": [
            "boolean",
            "null"
          ]
        },
        "max-progress-running": {
          "description": "Maximum number of running tests to list in the progress bar.\n\nAccepts a non-negative integer, or `\"infinite\"` for no limit. When the\nnumber of running tests exceeds this, the remainder is collapsed into a\nsummary line.",
          "anyOf": [
            {
              "$ref": "#/$defs/MaxProgressRunning"
            },
            {
              "type": "null"
            }
          ]
        },
        "output-indent": {
          "description": "Indents captured test output for visual clarity.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "pager": {
          "description": "Pager command to use for output that benefits from scrolling. Use\n`\":builtin\"` to select nextest's built-in pager.",
          "anyOf": [
            {
              "$ref": "#/$defs/PagerSetting"
            },
            {
              "type": "null"
            }
          ]
        },
        "paginate": {
          "description": "When to send output through the pager.",
          "anyOf": [
            {
              "$ref": "#/$defs/PaginateSetting"
            },
            {
              "type": "null"
            }
          ]
        },
        "show-progress": {
          "description": "Style of progress display shown during test runs.",
          "anyOf": [
            {
              "$ref": "#/$defs/UiShowProgress"
            },
            {
              "type": "null"
            }
          ]
        },
        "streampager": {
          "description": "Settings for the built-in pager (active when `pager = \":builtin\"`).",
          "$ref": "#/$defs/DeserializedStreampagerConfig"
        }
      },
      "additionalProperties": false
    },
    "DeserializedUiOverrideData": {
      "description": "Per-platform substitutions for `[ui]` settings.\n\nEach field has the same meaning as in the `[ui]` table. Only the fields\nactually set here are substituted on matching platforms.",
      "type": "object",
      "properties": {
        "input-handler": {
          "description": "Enables the interactive keyboard input handler.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "max-progress-running": {
          "description": "Maximum number of running tests to list in the progress bar.",
          "anyOf": [
            {
              "$ref": "#/$defs/MaxProgressRunning"
            },
            {
              "type": "null"
            }
          ]
        },
        "output-indent": {
          "description": "Indents captured test output for visual clarity.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "pager": {
          "description": "Pager command to use for output that benefits from scrolling.",
          "anyOf": [
            {
              "$ref": "#/$defs/PagerSetting"
            },
            {
              "type": "null"
            }
          ]
        },
        "paginate": {
          "description": "When to send output through the pager.",
          "anyOf": [
            {
              "$ref": "#/$defs/PaginateSetting"
            },
            {
              "type": "null"
            }
          ]
        },
        "show-progress": {
          "description": "Style of progress display shown during test runs.",
          "anyOf": [
            {
              "$ref": "#/$defs/UiShowProgress"
            },
            {
              "type": "null"
            }
          ]
        },
        "streampager": {
          "description": "Settings for the built-in pager (active when `pager = \":builtin\"`).",
          "$ref": "#/$defs/DeserializedStreampagerConfig"
        }
      },
      "additionalProperties": false
    },
    "ExperimentalConfig": {
      "description": "User-level experimental features.\n\nConfigured in the `[experimental]` table of the user config file:\n\n```toml\n[experimental]\nrecord = true\n```\n\nUnknown features in this table produce a warning rather than an error, so\nolder nextest binaries can load configs written for newer ones.",
      "type": "object",
      "properties": {
        "record": {
          "description": "Enables the record-replay-rerun feature, which stores test run results\non disk so they can be replayed or selectively rerun later.",
          "type": "boolean",
          "default": false
        }
      }
    },
    "MaxProgressRunning": {
      "title": "MaxProgressRunning",
      "description": "Maximum number of running tests to display: a non-negative integer, or \"infinite\" for no limit.",
      "oneOf": [
        {
          "type": "integer",
          "minimum": 0
        },
        {
          "type": "string",
          "enum": [
            "infinite"
          ]
        }
      ]
    },
    "PagerSetting": {
      "title": "PagerSetting",
      "anyOf": [
        {
          "type": "string",
          "const": ":builtin"
        },
        {
          "$ref": "#/$defs/CommandNameAndArgs"
        }
      ]
    },
    "PaginateSetting": {
      "description": "When to send output through the pager.",
      "oneOf": [
        {
          "description": "Pages output from supported commands when stdout is a terminal.",
          "type": "string",
          "const": "auto"
        },
        {
          "description": "Disables pagination entirely.",
          "type": "string",
          "const": "never"
        }
      ]
    },
    "StreampagerInterface": {
      "description": "How the built-in pager uses the alternate screen and when it exits.",
      "oneOf": [
        {
          "description": "Exits immediately if the output fits on one page; otherwise switches\nto full-screen and clears on exit.",
          "type": "string",
          "const": "quit-if-one-page"
        },
        {
          "description": "Always uses full-screen mode and clears the screen on exit.",
          "type": "string",
          "const": "full-screen-clear-output"
        },
        {
          "description": "Waits briefly before entering full-screen mode; clears on exit only if\nit switched to full-screen.",
          "type": "string",
          "const": "quit-quickly-or-clear-output"
        }
      ]
    },
    "StreampagerWrapping": {
      "description": "How long lines are wrapped in the built-in pager.",
      "oneOf": [
        {
          "description": "Disables wrapping; long lines extend off-screen and can be scrolled\nhorizontally.",
          "type": "string",
          "const": "none"
        },
        {
          "description": "Wraps at word boundaries.",
          "type": "string",
          "const": "word"
        },
        {
          "description": "Wraps at any character (grapheme) boundary.",
          "type": "string",
          "const": "anywhere"
        }
      ]
    },
    "UiShowProgress": {
      "description": "Style of progress display shown during test runs.",
      "oneOf": [
        {
          "description": "Picks a display based on terminal capabilities: a progress bar in\ninteractive terminals, a counter otherwise.",
          "type": "string",
          "const": "auto"
        },
        {
          "description": "Disables progress display entirely.",
          "type": "string",
          "const": "none"
        },
        {
          "description": "Shows a progress bar listing the currently running tests.",
          "type": "string",
          "const": "bar"
        },
        {
          "description": "Shows a single-line counter (e.g. `(1/10)`).",
          "type": "string",
          "const": "counter"
        },
        {
          "description": "Like `bar` in interactive terminals, but additionally hides successful\ntest output (sets `status-level` to `slow` and `final-status-level` to\n`none`). Falls back to `auto` behavior in non-interactive contexts\n(e.g. piped output, CI).",
          "type": "string",
          "const": "only"
        }
      ]
    }
  }
}