...
Code Block | ||
---|---|---|
| ||
when: job: KeyGeneratorExample # The DataStage Job with which this test spec is associated parameters: DSJobStartDate: 2012-01-15 # Run the test using this value for the DSJobStartDate macro DSJobStartTime: 11:05:01 # Run the test using this value for the DSJobStartTime macro paramStartKey: 100 # Run the test using this value for the paramStartKey Job parameter |
From Unit Testing Surrogate Key Generator Stages - MettleCI Documentation - Confluence (atlassian.net) β¦
Then
The then
section associates unit test data files with each of your Jobβs input links.
...
Job Run Mode | Test Specification βGivenβ section | Test Specification 'When' section | Test Specification βThenβ section | Description |
---|---|---|---|---|
Normal | ||||
Ignored | Job is executed normally with MettleCI no test harness intervention. | |||
Unit Test Interception | ||||
β Specified | β Specified | β Specified | ||
? Empty | β Specified | β Specified | Fail? | |
βοΈ Specifies non-existent files | β Specified | β Specified | ||
β Specified | β Specified | ? Empty | Fail? | |
β Specified | β Specified | βοΈ Specifies non-existent files | Re-baselineβs expected test output. See Capturing a Baseline Test Result. | |
Unit Test Execution | ||||
β Supplied | β Supplied | β Supplied | ||
βοΈ Empty | β Supplied | β Supplied | No input test data specified so the Jobβs normal input operations are permitted to read from upstream data sources. Output is compared to an expected output test data file. See an example here. | |
β Supplied | β Supplied | βοΈ Empty | Input test data is injected into your jobs but no output test data is supplied for comparison so the Jobβs normal output operations are permitted to write to downstream data stores. No output comparison is performed. |
Test specification. patterns
Include Page | ||||
---|---|---|---|---|
|