Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/server/src/testsApi

the Tests tab's REST surface: list a feature's tests with the scenario coverage table, read one test, clone a locked generated test, and (re)generate a feature's locked tests.

Cockpit server, next. Source: ui/server/src/testsApi.mjs.

Functions#

createTestsRouter()#

createTestsRouter(deps): any

Defined in: ui/server/src/testsApi.mjs:68

Parameters#

deps

runs is optional so the read/clone/edit routes can be mounted without a process runtime.

clientOrigin?

string

getRoot

() => { ok: true; root: string; } | { error: string; ok: false; }

runs?

{ cancel: any; enqueue: { error?: undefined; live: { processId: any; state: any; target: any; }; processId?: undefined; started: boolean; } | { error: any; live?: undefined; processId?: undefined; started: boolean; } | { error?: undefined; live?: undefined; processId: any; started: boolean; }; last: { lastRun: { baseUrl: any; counts: any; durationMs: any; processId: any; target: any; }; tests: any[]; }; live: { processId: any; state: any; target: any; }; pending: number; problem: { code: any; message: any; state: any; target: any; }; } = null

runs.cancel
runs.enqueue
runs.last
runs.live
runs.pending
runs.problem

Returns#

any