Skip to main content
Version: 2.0.0

Test results - Get multiple

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

Arguments

pipelineSlug

The slug of the pipeline to retrieve test results for as a string. Learn [about pipelines here] (pipeline/basics). Create a new pipeline here.

Return value

This endpoint returns an array of TestResult objects for the provided pipeline. View the types list above for the full property breakdown of a TestResult object.

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.

Example

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