Test Approval
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
| Parameter | Type | Description |
|---|---|---|
testCommand | string | The test command to execute. |
Optional Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
timeout | integer | 30 | Test execution timeout in minutes. |
workingDirectory | string | - | Working directory for test execution. |
environmentVariables | object | - | Environment variables to set for tests. |
testType | enum: 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