Execute unit tests transform Icon Execute unit tests

Description

The Execute unit tests transform fetches and executes the available unit tests for the current project.

Options

Option Description

Transform name

name for this transform

Test name input field

name of a field to get the unit test name from to determine which transforms to execute. This option is only available when the transform receives input.

Type of tests to run

Development, Unit test, or a custom type from the project. Only unit tests of that type are executed. The list includes every type already used in the project.

Pipeline output field name

the pipeline that is tested

Unit test output field name

the unit test that is executed

Data set output field name

the (golden) data set used for this test

transform output field name

the transform that is used in this test

Error output field name

error status (Y or N)

Comment output field name

the comment or error message returned by the test

Samples

The samples project has transforms/execute-unit-tests.hpl, which runs the unit test run-pipeline-tests-unit and returns one row for the check against its golden data set and one for the test as a whole.