Skip to main content

kratix test pipeline

A command for testing Kratix Promise Pipelines

Description

A command for testing Kratix Promise Pipelines This command will run your Pipeline stages in order and validate that the output generated by the Pipeline containers matches the contents of the --expected-output-dir. Example: kratix test pipeline LIFECYCLE/ACTION/PIPELINE-NAME --input-dir input-directory/ --expected-output-dir expected-outputs/

Usage

test pipeline LIFECYCLE/ACTION/PIPELINE-NAME [flags]

Flags

--build                        Build the images for the pipeline containers before running the test
--build-args string Extra build arguments to pass to the container run command
--buildx Run the test containers using Buildx
-d, --dir string Directory to read the Promise from (default ".")
-e, --engine string The container engine to use when running the test containers (default "docker")
--env strings The environment variables to provide to the test container e.g. DRY_RUN=true,ENVIRONMENT=dev
-o, --expected-output-dir string The directory containing the expected output files to compare to the generated output
-h, --help help for pipeline

See Also