MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / triggerBatchRunFresh

Method triggerBatchRunFresh

src/lib/http.ts:326–336  ·  view source on GitHub ↗

* POST /api/cli/v1/tests/batch/run * Trigger a fresh wave-ordered batch run across all (or a subset of) BE tests * in a project. FE tests in the set are skipped server-side (advisory). * `testIds` absent / empty → run ALL BE tests in the project. * * `retryOnConflict: false` — 409 on

(
    body: BatchRunFreshRequest,
    options: { idempotencyKey: string; signal?: AbortSignal },
  )

Source from the content-addressed store, hash-verified

324 * `retryOnConflict: false` — 409 on batch run means a run is already in flight.
325 */
326 async triggerBatchRunFresh(
327 body: BatchRunFreshRequest,
328 options: { idempotencyKey: string; signal?: AbortSignal },
329 ): Promise<BatchRunFreshResponse> {
330 return this.postWithMeta<BatchRunFreshResponse>('/tests/batch/run', {
331 body,
332 headers: { 'idempotency-key': options.idempotencyKey },
333 signal: options.signal,
334 retryOnConflict: false,
335 }).then(r => r.body);
336 }
337
338 /**
339 * GET /api/cli/v1/tests/{testId}/runs

Callers 1

runTestRunAllFunction · 0.80

Calls 1

postWithMetaMethod · 0.95

Tested by

no test coverage detected