Pipeline Unit Test
Description
Describes a test for a pipeline. During the test, alternative data sets are used as input from a given transform and testing output against a golden data set.
When the result set produced by the pipeline execution matches the expected result (golden data set), the test succeeds. If the generated results do not match what was expected, the test fails.
Transforms with an input data set are replaced with an Injector (the static data set rows are injected). Transforms with a golden data set are replaced with a Dummy so the test does not write to a file or a database; the rows flowing into that transform are compared to the golden data set.
Specific transforms in a pipeline can be bypassed or removed for testing for additional flexibility.
Additionally, unit tests can be executed in bulk.
Check Pipeline Unit Testing^ for more details.
Options
| Option | Default | Description |
|---|---|---|
Name | the name to use for this unit test | |
Description | the description to use for this unit test | |
Type of test | Development | 'Development' or 'unit test' |
The pipeline to test | the pipeline that will be tested by this unit test | |
Test pipeline filename (Optional) | ||
Base test path (or use HOP_UNIT_TESTS_FOLDER) | ||
Select this test automatically | false | |
Replace a database connection with another | List of database connections in the pipeline to test (Original DB) to replace by database connections in this unit test (Replacement DB) | |
Variables | list of variable names and values to use for this test |