Skip to main content
Version: 4.7.28

Test results - Get multiple

The function getTestResults() retrieves a list of test results for a pipeline.

Example

typescript
import { init, getTestResults } from "@gentrace/core";
 
const testResults = await getTestResults("my-pipeline");

Arguments

pipelineSlug

Learn about pipelines here. Create a new pipeline here.

Return value

Array of TestResult objects. View the types list in the test result singular page for more details.

caution

The objects returned by this endpoint are thin representations of test results. The type of these objects is TestResult. They do not contain the same level of depth as the deeply-nested object returned by the getTestResult endpoint.

To get a deeply-nested object, use the getTestResult function after retrieving the list of test results.