mattcasters / pentaho-pdi-dataset

Set of PDI plugins to more easily work with data sets. We also want to provide unit testing capabilities through input data sets and golden data sets.
Apache License 2.0
30 stars 13 forks source link

Add ability to inject parameter values in unit test #15

Closed cdeptula closed 5 years ago

cdeptula commented 7 years ago

When you execute an individual unit test through Spoon it executes with the parameter values defined at run time. When you execute a unit test using the Execute Unit Tests step it uses parameters defined in that transformation, and if a transformation being unit tested has a parameter that is not defined in the parent transformation it gets ${parameter_name}.

Often times the parameter value is critical to the output of a transformation, and there are cases where I want to have multiple unit tests for a transformation that all use different parameter values. It would be good to have the option to save the parameter values in the unit test itself which would allow for multiple unit tests to use different parameter values.

mattcasters commented 7 years ago

Hi Chris, sorry it took so long to pick this comment up. Do you think we could supply parameters values for testing in the definition dialog of the test, like we did for database mappings? Without feedback from you that's where I would solve this issue.

cdeptula commented 7 years ago

I think configuring them in the test definition dialog makes sense and would work well.

mattcasters commented 6 years ago

Also planned for 2.1.0