Line

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

ui/client/features/tests/services/TestsWrites

The two MUTATING calls of ui/server's /api/tests (POST, behind the session).

Cockpit client (features), next. Source: ui/client/features/tests/services/TestsWrites.ts.

Functions#

cloneTest()#

cloneTest(feature, source, name): Promise<CloneResult>

Defined in: ui/client/features/tests/services/TestsWrites.ts:10

Copy one generated test to features//tests/.spec.ts.

Parameters#

feature

string

source

string

name

string

Returns#

Promise<CloneResult>


generateTests()#

generateTests(feature): Promise<GenerateResult>

Defined in: ui/client/features/tests/services/TestsWrites.ts:20

construct generate tests <feature>: the generator refuses, with the YAML to add, when the lock is not declared.

Parameters#

feature

string

Returns#

Promise<GenerateResult>


storyCompareAi()#

storyCompareAi(feature): Promise<StoryCompareAiResult>

Defined in: ui/client/features/tests/services/TestsWrites.ts:31

AI compare: asks the local model to cite which code unit(s) satisfy which acceptance line, then verifies every citation mechanically server-side before returning it -- an unverifiable citation is dropped, never shown.

Parameters#

feature

string

Returns#

Promise<StoryCompareAiResult>