ui/client/features/tests/hooks/useTestRuns
Cockpit client (features), v0.8. Source: ui/client/features/tests/hooks/useTestRuns.tsx.
Functions#
useTestRuns()#
useTestRuns(
feature,ready,select):object
Defined in: ui/client/features/tests/hooks/useTestRuns.tsx:13
Running the selected feature's tests: the panel's view, the result of any one test, the address the app runs at, and the actions. A run is a Process in the Processes drawer; this only starts it and watches it. Every rule (what may run, where) lives on the server.
Parameters#
feature
string
ready
boolean
select
(selection) => void
Returns#
forTest
forTest: (
test) =>TestRunProps
What a test's detail draws and does about running that one test (nothing selected: an inert one).
Parameters
test
YourTest | GeneratedTest | null
Returns
panel
panel:
RunPanelProps
The run panel's props.
resultOf
resultOf: (
file) =>ResultMark
The "Last result" cell of a generated test's file.
Parameters
file
string