@testsprite/testsprite-cli 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +24 -16
  2. package/dist/commands/agent.js +7 -2
  3. package/dist/commands/auth.js +7 -3
  4. package/dist/commands/ci.js +20 -18
  5. package/dist/commands/completion.js +2 -1
  6. package/dist/commands/doctor.js +2 -1
  7. package/dist/commands/init.js +8 -2
  8. package/dist/commands/project-env.js +39 -17
  9. package/dist/commands/project-sign-in.js +9 -4
  10. package/dist/commands/project.js +28 -21
  11. package/dist/commands/schedule.js +24 -15
  12. package/dist/commands/test.d.ts +32 -26
  13. package/dist/commands/test.js +949 -769
  14. package/dist/commands/testlist.js +13 -3
  15. package/dist/commands/tunnel.js +23 -25
  16. package/dist/commands/usage.js +1 -0
  17. package/dist/index.js +9 -6
  18. package/dist/lib/conflict-reason.d.ts +24 -3
  19. package/dist/lib/conflict-reason.js +33 -2
  20. package/dist/lib/deprecate.d.ts +22 -0
  21. package/dist/lib/deprecate.js +26 -0
  22. package/dist/lib/dry-run/samples.js +14 -4
  23. package/dist/lib/environment-tunnel.d.ts +2 -1
  24. package/dist/lib/environment-tunnel.js +1 -4
  25. package/dist/lib/http.js +20 -2
  26. package/dist/lib/junit-report.d.ts +3 -0
  27. package/dist/lib/junit-report.js +8 -1
  28. package/dist/lib/output.d.ts +11 -1
  29. package/dist/lib/output.js +17 -2
  30. package/dist/lib/response-schemas.js +3 -0
  31. package/dist/lib/runs.types.d.ts +16 -0
  32. package/dist/lib/telemetry.d.ts +1 -1
  33. package/dist/lib/telemetry.js +2 -0
  34. package/dist/version.d.ts +1 -1
  35. package/dist/version.js +1 -1
  36. package/package.json +3 -3
  37. package/skills/testsprite-verify.codex.md +7 -7
  38. package/skills/testsprite-verify.skill.md +24 -21
@@ -948,16 +948,17 @@ export function createProjectCommand(deps = {}) {
948
948
  const project = new Command('project').description('Manage TestSprite projects');
949
949
  project
950
950
  .command('list')
951
+ .summary('List projects visible to the API key')
951
952
  .description('List projects visible to the API key\n' +
952
953
  '\nExit codes:\n' +
953
954
  ' 0 success\n' +
954
955
  ' 3 auth error\n' +
955
956
  ' 5 validation error (e.g., bad --page-size)\n' +
956
957
  ' 10 transport/network failure (UNAVAILABLE) — retry the command')
957
- .option('--page-size <n>', 'service page-size hint (1-100, default 25)')
958
+ .option('--page-size <n>', 'page size (1-100, default 25); alone it returns one page plus a next --starting-token (add --max-items to auto-page)')
958
959
  .option('--starting-token <token>', 'opaque cursor from a previous list response')
959
960
  .option('--max-items <n>', 'stop after this many items across auto-paged pages')
960
- .option('--columns <list>', 'select/reorder text table columns (comma-separated keys)')
961
+ .option('--columns <list>', 'select/reorder text table columns (comma-separated keys: id, name, type, from, org, url, created, defaultenv, envs)')
961
962
  .option('--no-header', 'suppress the text table header row')
962
963
  .addHelpText('after', GLOBAL_OPTS_HINT)
963
964
  .action(async (cmdOpts, command) => {
@@ -987,15 +988,14 @@ export function createProjectCommand(deps = {}) {
987
988
  .description('Create a new project')
988
989
  .option('--type <frontend|backend>', 'project type (required)')
989
990
  .option('--name <name>', 'project name (required)')
990
- .option('--url <url>', 'target URL (public http/https or a loopback http origin with an explicit port; required for frontend unless --local is used; also required for backend on the V3 execution ' +
991
- 'path — see `auth status` for your routing)')
992
- .option('--local <port>', 'shorthand for --url http://localhost:<port> (1-65535; excludes --url; runs open a tunnel automatically)')
991
+ .option('--url <url>', 'target URL (public http/https; a loopback http origin with an explicit port is frontend only; required for frontend unless --local; also required for backend on the V3 path, see `auth status`)')
992
+ .option('--local <port>', 'shorthand for --url http://localhost:<port> (1-65535; excludes --url; frontend only; runs open a tunnel automatically)')
993
993
  .addOption(new Option('--local-host <host>', 'deprecated loopback host override; requires --local').hideHelp())
994
994
  .option('--skip-preflight', 'skip the local TCP listener check before project creation')
995
995
  .option('--description <text>', 'not supported — projects have no description (test-level descriptions are set on `test create`)')
996
- .option('--username <user>', 'optional auth username')
997
- .option('--password <pw>', 'optional auth password (use --password-file for non-interactive)')
998
- .option('--password-file <path>', 'read password from file instead of inline flag')
996
+ .option('--username <user>', 'optional auth username (give with --password)')
997
+ .option('--password <pw>', 'optional auth password, with --username (--password-file for non-interactive)')
998
+ .option('--password-file <path>', 'read password from file (if both are given, --password wins with a warning)')
999
999
  .option('--instruction <text>', 'optional FE plan-gen instruction hint')
1000
1000
  .option('--test-id-attributes <list>', 'comma-separated DOM attributes the engine should prefer as locators, highest priority first ' +
1001
1001
  '(e.g. data-element,data-testid). Unique values are exported as page.locator(\'[attr="…"]\').')
@@ -1039,7 +1039,7 @@ export function createProjectCommand(deps = {}) {
1039
1039
  .option('--skip-preflight', 'skip the local TCP listener check before the update')
1040
1040
  .option('--username <user>', 'new auth username')
1041
1041
  .option('--password <pw>', 'new auth password')
1042
- .option('--password-file <path>', 'read new password from file')
1042
+ .option('--password-file <path>', 'read new password from file (if both are given, --password wins with a warning)')
1043
1043
  .option('--instruction <text>', 'new FE plan-gen instruction hint')
1044
1044
  .option('--test-id-attributes <list>', 'comma-separated DOM attributes the engine should prefer as locators, highest priority first ' +
1045
1045
  '(e.g. data-element,data-testid); replaces the current list')
@@ -1068,6 +1068,7 @@ export function createProjectCommand(deps = {}) {
1068
1068
  });
1069
1069
  project
1070
1070
  .command('delete <project-id>')
1071
+ .summary('Permanently delete a project (requires --confirm)')
1071
1072
  .description('Permanently delete a project and everything under it (sub-projects,\n' +
1072
1073
  'their tests, and backend fixtures). Requires --confirm.\n' +
1073
1074
  '\nExit codes:\n' +
@@ -1088,9 +1089,10 @@ export function createProjectCommand(deps = {}) {
1088
1089
  });
1089
1090
  project
1090
1091
  .command('credential <project-id>')
1091
- .description('Set the static backend credential injected into every backend test\n' +
1092
- '(Bearer token / API key / Basic token / public). Free tier.')
1093
- .requiredOption('--type <type>', 'public | "Bearer token" | "API key" | "basic token"')
1092
+ .summary('Set the static credential injected into backend tests')
1093
+ .description('Set the static backend credential injected into every backend test. Free tier.\n' +
1094
+ "On V3 accounts it is stored on the project's default environment.")
1095
+ .requiredOption('--type <type>', 'required: public | "Bearer token" | "API key" | "basic token" (exact, lowercase)')
1094
1096
  .option('--credential <value>', 'credential value (required unless --type public)')
1095
1097
  .option('--credential-file <path>', 'read the credential value from a file')
1096
1098
  .option('--idempotency-key <token>', 'opaque idempotency token. Defaults to a UUIDv4 minted per invocation.')
@@ -1107,11 +1109,14 @@ export function createProjectCommand(deps = {}) {
1107
1109
  });
1108
1110
  project
1109
1111
  .command('auto-auth <project-id>')
1110
- .description('Configure the recurring-token (auto-refresh login) for backend tests (Pro).\n' +
1111
- 'A fresh token is fetched on each run and injected into every backend test.')
1112
+ .summary('Configure auto-refresh login for backend tests (paid)')
1113
+ .description('Configure the recurring-token (auto-refresh login) for backend tests (paid plans):\n' +
1114
+ 'a fresh token is fetched on each run and injected into every backend test.\n' +
1115
+ 'Each method needs its own flags (password: --login-url, --token-path, ...;\n' +
1116
+ 'refresh_token: --token-endpoint, --client-id, ...; aws_cognito_refresh: --region, ...).')
1112
1117
  .requiredOption('--method <method>', 'password | refresh_token | aws_cognito_refresh')
1113
1118
  .requiredOption('--inject <where>', 'bearer | header | cookie')
1114
- .option('--disable', 'turn auto-auth off (keeps stored config)')
1119
+ .option('--disable', 'turn auto-auth off, keeping stored config (--method and --inject are still required)')
1115
1120
  .option('--inject-key <name>', 'header/cookie name when --inject is header/cookie')
1116
1121
  // password method
1117
1122
  .option('--login-url <url>', 'login endpoint (method=password)')
@@ -1161,13 +1166,15 @@ export function createProjectCommand(deps = {}) {
1161
1166
  idempotencyKey: cmdOpts.idempotencyKey,
1162
1167
  }, deps);
1163
1168
  });
1164
- const docs = new Command('docs').description('Manage project documents — the sources plan generation feeds on');
1169
+ const docs = new Command('docs')
1170
+ .summary('Manage project documents (plan-generation sources)')
1171
+ .description('Manage project documents — the sources plan generation feeds on');
1165
1172
  docs
1166
1173
  .command('upload <file>')
1167
- .description('Upload an API spec or PRD as a project source. Three steps:\n' +
1168
- 'mint a presigned S3 URL, stream the file bytes to it, register the\n' +
1169
- 'document — which starts processing + embedding. The local file is\n' +
1170
- 'only read; nothing is written back to disk.\n' +
1174
+ .summary('Upload an API spec or PRD as a project source')
1175
+ .description('Upload an API spec or PRD as a project source: mint a presigned S3 URL, stream the file\n' +
1176
+ 'to it, register the document — which starts processing + embedding and spends credits\n' +
1177
+ '(see `testsprite usage`). The local file is only read.\n' +
1171
1178
  '\nExit codes:\n' +
1172
1179
  ' 0 upload registered (processing started)\n' +
1173
1180
  ' 3 auth error\n' +
@@ -1175,7 +1182,7 @@ export function createProjectCommand(deps = {}) {
1175
1182
  ' 5 validation error (missing/empty file, bad --role)\n' +
1176
1183
  ' 7 request timeout (also: backend predates the docs routes)\n' +
1177
1184
  ' 10 presigned S3 PUT failed — re-run to mint a fresh URL')
1178
- .option('--project <id>', 'project id the document belongs to (required)')
1185
+ .option('--project <id>', 'project id (required unless TESTSPRITE_PROJECT_ID is set)')
1179
1186
  .option('--role <role>', 'document role: api-doc (API spec, default) | prd')
1180
1187
  .option('--name <display-name>', 'display name for the document (default: file basename)')
1181
1188
  .option('--idempotency-key <token>', 'opaque idempotency token. Defaults to a UUIDv4 minted per invocation.')
@@ -233,10 +233,9 @@ export async function runDelete(opts, deps = {}) {
233
233
  error: {
234
234
  code: 'VALIDATION_ERROR',
235
235
  message: 'Refusing to delete without --confirm.',
236
- nextAction: 'This removes the schedule and its run history, and stops it firing (no ' +
237
- 'restore window — recreating it starts a fresh schedule). The CLI convention ' +
238
- 'is explicit confirmation for destructive operations. Re-run with --confirm. ' +
239
- '(--dry-run also works without --confirm.)',
236
+ nextAction: 'This removes the schedule and stops it firing; past runs are kept but no longer ' +
237
+ 'listed under it (no restore window). Re-run with --confirm ' +
238
+ '(--dry-run also works without it).',
240
239
  requestId: 'local',
241
240
  details: { field: 'confirm', reason: 'required for destructive operation' },
242
241
  },
@@ -472,9 +471,12 @@ function localValidationError(message) {
472
471
  // Wiring
473
472
  // ---------------------------------------------------------------------------
474
473
  export function createScheduleCommand(deps = {}) {
475
- const schedule = new Command('schedule').description('Manage TestSprite schedules');
474
+ const schedule = new Command('schedule')
475
+ .summary('Manage schedules (V3 workspace)')
476
+ .description('Manage TestSprite schedules. Needs a V3 workspace and an API key with the read:schedules / write:schedules scopes.');
476
477
  schedule
477
478
  .command('list')
479
+ .summary('List schedules visible to the API key')
478
480
  .description('List schedules visible to the API key\n' +
479
481
  '\nExit codes:\n' +
480
482
  ' 0 success\n' +
@@ -494,6 +496,7 @@ export function createScheduleCommand(deps = {}) {
494
496
  });
495
497
  schedule
496
498
  .command('get <schedule-id>')
499
+ .summary('Get a schedule by id')
497
500
  .description('Get a schedule by id\n' +
498
501
  '\nExit codes:\n' +
499
502
  ' 0 success\n' +
@@ -508,7 +511,9 @@ export function createScheduleCommand(deps = {}) {
508
511
  });
509
512
  schedule
510
513
  .command('create')
511
- .description('Create a schedule\n' +
514
+ .summary('Create a schedule (starts enabled; runs spend credits)')
515
+ .description('Create a schedule. It starts enabled and each run spends credits (an estimate is printed);\n' +
516
+ 'pause it with `schedule update <id> --pause`.\n' +
512
517
  '\nExit codes:\n' +
513
518
  ' 0 success\n' +
514
519
  ' 3 auth error\n' +
@@ -523,10 +528,9 @@ export function createScheduleCommand(deps = {}) {
523
528
  .option('--target-type <project|testList>', 'what to run (required)')
524
529
  .option('--target-id <id>', 'project id or test-list id (required)')
525
530
  .option('--env <name>', "Pin this project schedule to an environment; omit to always use the project's default environment")
526
- .option('--cron <expr>', 'standard 5-field cron (minute hour day-of-month month day-of-week), ' +
527
- 'e.g. "0 3 * * *". Day-of-week is 0-7, with both 0 and 7 = Sunday. ' +
528
- 'Constrain ' +
529
- 'day-of-month or day-of-week, not both. (required)')
531
+ .option('--cron <expr>', 'standard 5-field cron (minute hour day-of-month month day-of-week), e.g. "0 3 * * *". ' +
532
+ 'Day-of-week 0-7 (0 and 7 = Sunday). Constrain day-of-month or day-of-week, not both. ' +
533
+ 'Numeric fields only (* n a-b */n, lists); no names, ?, L, W or #. (required)')
530
534
  .option('--timezone <tz>', 'IANA timezone (default UTC)')
531
535
  .option('--start <iso>', 'ISO 8601 start instant (default: a few minutes from now)')
532
536
  .option('--end <iso>', 'ISO 8601 end instant (default: open-ended)')
@@ -550,6 +554,7 @@ export function createScheduleCommand(deps = {}) {
550
554
  });
551
555
  schedule
552
556
  .command('update <schedule-id>')
557
+ .summary('Update a schedule, or pause/resume it')
553
558
  .description('Update a schedule, or pause/resume it\n' +
554
559
  '\nExit codes:\n' +
555
560
  ' 0 success\n' +
@@ -562,9 +567,9 @@ export function createScheduleCommand(deps = {}) {
562
567
  ' 10 transport/network failure (UNAVAILABLE) — retry the command\n' +
563
568
  ' 13 not available on your plan')
564
569
  .option('--name <name>', 'new schedule name')
565
- .option('--env <name>', "Pin this project schedule to an environment; omit to always use the project's default environment")
566
- .option('--cron <expr>', 'new standard 5-field cron, as printed by `schedule get`. Day-of-week is ' +
567
- '0-7, with both 0 and 7 = Sunday. Constrain day-of-month or day-of-week, not both.')
570
+ .option('--env <name>', 'Pin this project schedule to an environment; omit to leave the current pin unchanged')
571
+ .option('--cron <expr>', 'new standard 5-field cron, as printed by `schedule get`. Day-of-week 0-7 (0 and 7 = Sunday). ' +
572
+ 'Constrain day-of-month or day-of-week, not both. Numeric fields only (no names, ?, L, W or #).')
568
573
  .option('--timezone <tz>', 'new IANA timezone')
569
574
  .option('--start <iso>', 'new ISO 8601 start instant')
570
575
  .option('--end <iso>', 'new ISO 8601 end instant')
@@ -591,7 +596,9 @@ export function createScheduleCommand(deps = {}) {
591
596
  });
592
597
  schedule
593
598
  .command('delete <schedule-id>')
594
- .description('Delete a schedule and its run history. Requires --confirm.\n' +
599
+ .summary('Delete a schedule (requires --confirm)')
600
+ .description('Delete a schedule and stop it firing. Past runs are kept but no longer listed under it.\n' +
601
+ 'Requires --confirm.\n' +
595
602
  '\nExit codes:\n' +
596
603
  ' 0 success\n' +
597
604
  ' 3 auth error\n' +
@@ -615,7 +622,9 @@ export function createScheduleCommand(deps = {}) {
615
622
  const run = schedule.command('run').description("Inspect a schedule's runs");
616
623
  run
617
624
  .command('list <schedule-id>')
618
- .description("List a schedule's past runs\n" +
625
+ .summary("List a schedule's most recent runs")
626
+ .description("List a schedule's most recent runs (up to 100, within your plan's history window;\n" +
627
+ 'JSON `meta.hiddenCount` shows how many are hidden)\n' +
619
628
  '\nExit codes:\n' +
620
629
  ' 0 success\n' +
621
630
  ' 3 auth error\n' +
@@ -6,6 +6,7 @@ import { type JUnitReportFormat, type JUnitTestResult } from '../lib/junit-repor
6
6
  import { ApiError, InterruptError } from '../lib/errors.js';
7
7
  import { type ShutdownHandle } from '../lib/interrupt.js';
8
8
  import type { FetchImpl } from '../lib/http.js';
9
+ import { type DeprecationEntry } from '../lib/deprecate.js';
9
10
  import { type Page } from '../lib/pagination.js';
10
11
  import { type WaitTimeoutTelemetry } from '../lib/telemetry.js';
11
12
  import type { CliGetPlansResponse, CliGenerationStage } from '../lib/plans.types.js';
@@ -373,6 +374,12 @@ export interface TestDeps {
373
374
  * `sleep` / `fetchImpl` / `shutdown`.
374
375
  */
375
376
  createTunnelClient?: (options: TunnelClientOptions) => TunnelClientHandle;
377
+ /**
378
+ * Deprecation entries surfaced as a trailing `deprecations` key on JSON
379
+ * object payloads. Set only by the deprecated commands' actions; every
380
+ * `Output` built from these deps picks it up, so no print site changes.
381
+ */
382
+ deprecations?: readonly DeprecationEntry[];
376
383
  }
377
384
  /**
378
385
  * How a `--local` run's wait ended while the run was still non-terminal.
@@ -802,7 +809,7 @@ export interface CliCreateFromPlanResponse extends CliCreateTestResponse {
802
809
  * Caveat: the pinned tag only resolves once that version is actually
803
810
  * released — a locally-built/pre-release checkout may see a 404 until then.
804
811
  */
805
- export declare const PLAN_SCHEMA_URL = "https://raw.githubusercontent.com/TestSprite/testsprite-cli/v0.15.0/schemas/plan.schema.json";
812
+ export declare const PLAN_SCHEMA_URL = "https://raw.githubusercontent.com/TestSprite/testsprite-cli/v0.16.0/schemas/plan.schema.json";
806
813
  /**
807
814
  * The SINGLE canonical example plan. This
808
815
  * exact value (via `PLAN_TEMPLATE_TEXT` below) is:
@@ -922,22 +929,6 @@ export interface CliCreateBatchRunResponse {
922
929
  export declare const DEFAULT_BATCH_RUN_CONCURRENCY = 50;
923
930
  /** Hard upper bound for --max-concurrency. Values above this are rejected with exit 5 (VALIDATION_ERROR). */
924
931
  export declare const MAX_BATCH_CONCURRENCY = 100;
925
- /**
926
- * The server's DEFAULT in-flight run cap. Runs from every source count
927
- * toward it (CLI, portal, schedules, CI), but only CLI run triggers are
928
- * refused on it; a portal or schedule run over the cap is not. Exceeding it
929
- * answers RATE_LIMITED with `details.reason: "inflight_cap"`, whose details
930
- * carry the account's real `cap` and `current`.
931
- *
932
- * Quoted in help text only — the server owns the real number and rejects on
933
- * its own value, so this is documentation, never a client-side gate.
934
- *
935
- * Distinct from `--max-concurrency`, whose meaning differs per command: on
936
- * `create --run` it bounds in-flight triggers, and with `--wait` a slot is
937
- * held until that run finishes, so lowering it there does bound how many runs
938
- * are in flight. On `run --all` it bounds the `--wait` poll fan-out only.
939
- */
940
- export declare const SERVER_INFLIGHT_RUN_CAP = 50;
941
932
  /** Client-side run-trigger throttle: 50 triggers per 60-second rolling window per key (sits just under the server's 60/min/key cap). */
942
933
  export declare const BATCH_RUN_RATE_LIMIT = 50;
943
934
  /** Rolling window duration (ms) for the client-side trigger rate throttle. */
@@ -975,15 +966,6 @@ export declare const WAIT_POLL_RATE_MAX_OUTER_RETRIES = 3;
975
966
  */
976
967
  export declare function sleepUntilOrInterrupt(ms: number, signal: AbortSignal | undefined, sleep: (ms: number, signal?: AbortSignal) => Promise<void>): Promise<void>;
977
968
  export declare function resolveRateLimitRetryMs(err: ApiError): number;
978
- /**
979
- * D3: max automatic retry attempts for deferred tests under `--wait`.
980
- * Each attempt is preceded by a Retry-After-aware sleep (server value if
981
- * present, else 61s default), clamped to the remaining `--timeout` budget.
982
- * Only active under `--wait`; the non-wait path is unchanged.
983
- */
984
- export declare const MAX_DEFERRED_RETRIES = 3;
985
- /** D3: default deferred-retry sleep when no Retry-After is available (ms). */
986
- export declare const DEFERRED_RETRY_DEFAULT_SLEEP_MS = 61000;
987
969
  /**
988
970
  * Returns `true` when a `RATE_LIMITED` error is the **transient per-minute**
989
971
  * rate limit from `RunRateLimiterGuard` — the one worth retrying.
@@ -1542,6 +1524,8 @@ interface RunTestRunOptions extends CommonOptions {
1542
1524
  * `TriggerRunBody.autoHeal` for why an explicit `true` is never sent.
1543
1525
  */
1544
1526
  autoHeal?: false;
1527
+ /** BE only: run just the named test without expanding the producer/teardown closure. */
1528
+ skipDependencies?: boolean;
1545
1529
  /**
1546
1530
  * Skip the pre-charge --target-url reachability preflight (zero
1547
1531
  * network calls). Also set by a delegating caller (`runCreate`/
@@ -1860,6 +1844,8 @@ export interface RunTestRunAllOptions extends CommonOptions {
1860
1844
  projectId?: string;
1861
1845
  /** --filter <substr>: only run tests whose name contains this substring (case-insensitive). */
1862
1846
  nameFilter?: string;
1847
+ /** --status <list>: only run tests whose status (in `environment`, when set) is one of these. */
1848
+ statusFilter?: string;
1863
1849
  /** --wait: block until terminal or --timeout. */
1864
1850
  wait: boolean;
1865
1851
  /** Polling / overall deadline in seconds. Default 600, max 3600. */
@@ -1913,12 +1899,27 @@ export interface RunTestRunAllOptions extends CommonOptions {
1913
1899
  githubTrigger?: CiGithubTrigger;
1914
1900
  /** Skip the pre-charge target URL reachability probe. */
1915
1901
  skipPreflight?: boolean;
1902
+ /** See `RunTestRunOptions.skipDependencies`; sent on every dispatch leg. */
1903
+ skipDependencies?: boolean;
1904
+ /**
1905
+ * Run exactly these tests (`test run <id> <id> ...`) instead of a whole project.
1906
+ * Each id's project is read first and the ids are dispatched per project.
1907
+ */
1908
+ testIds?: string[];
1909
+ /** Tests whose type/project the caller already read, so the resolver does not read them again. */
1910
+ knownTests?: ReadonlyMap<string, Pick<CliTest, 'type' | 'projectId'>>;
1911
+ /**
1912
+ * Set by the explicit-ids resolver: each test's own project, for dashboard
1913
+ * links and the JUnit classname of a batch that spans several projects.
1914
+ */
1915
+ projectIdByTestId?: ReadonlyMap<string, string>;
1916
1916
  }
1917
1917
  export declare function writeBatchJUnitReportIfRequested(opts: {
1918
1918
  report?: JUnitReportFormat;
1919
1919
  reportFile?: string;
1920
1920
  reportSuiteName?: string;
1921
1921
  projectId?: string;
1922
+ projectIdByTestId?: ReadonlyMap<string, string>;
1922
1923
  }, results: readonly (JUnitTestResult & {
1923
1924
  createdAt?: string | null;
1924
1925
  startedAt?: string | null;
@@ -1943,6 +1944,7 @@ interface RunTestRunLocalBatchOptions extends CommonOptions {
1943
1944
  all: boolean;
1944
1945
  projectId?: string;
1945
1946
  nameFilter?: string;
1947
+ statusFilter?: string;
1946
1948
  localPort?: number;
1947
1949
  localHost?: LoopbackHost;
1948
1950
  skipPreflight: boolean;
@@ -1959,6 +1961,10 @@ interface RunTestRunLocalBatchOptions extends CommonOptions {
1959
1961
  allowEmpty: boolean;
1960
1962
  autoHeal?: false;
1961
1963
  environment?: string;
1964
+ /** See `RunTestRunOptions.skipDependencies`; forwarded to every dispatch. */
1965
+ skipDependencies?: boolean;
1966
+ /** `--timeout` was not given: a batch run that needs no tunnel uses the ordinary default. */
1967
+ timeoutIsDefault?: boolean;
1962
1968
  }
1963
1969
  /** One bounded trigger-and-wait pool shares one local tunnel for its full lifetime. */
1964
1970
  export declare function runTestRunLocalBatch(opts: RunTestRunLocalBatchOptions, deps?: TestDeps): Promise<void>;