Skip to main content

Test Approval

Stable

Type: DEVRAMPS:APPROVAL:TEST

Category: approval

Version: 1.0.0


Description

Run automated tests and require passing results to proceed.

Executes a test command and uses the results to determine approval. If tests pass (exit code 0), the pipeline automatically proceeds. If tests fail, the pipeline is blocked and requires manual intervention. Supports Jest integration for enhanced test result parsing and reporting.

Parameters

Required Parameters

ParameterTypeDescription
testCommandstringThe test command to execute.

Optional Parameters

ParameterTypeDefaultDescription
timeoutinteger30Test execution timeout in minutes.
workingDirectorystring-Working directory for test execution.
environmentVariablesobject-Environment variables to set for tests.
testTypeenum: generic | jest"generic"Test framework type for enhanced result parsing.

Example Usage

- type: DEVRAMPS:APPROVAL:TEST
name: Integration Tests
params:
testCommand: npm run test:integration
testType: jest
workingDirectory: ./tests
environmentVariables:
TEST_ENV: staging
API_URL: "${{ steps.infra.api_url }}"
timeout: 30