You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree with @angry-cellophane's assessment here. Additionally, the roots and extension fields are actually named scriptRoots and scriptExtension.
There's a number of ways to fix this:
change the documentation to reflect the current way this works (i.e. setting BasePipelineTest's properties, as @angry-cellophane points out
change the behaviour - e.g. have the properties in BasePipelineTest as unmodifiable default values; apply these to the helper in the BasePipelineTest() constructor, so that people can override in their setUp() implementation.
Perhaps if one of the maintainers of this project could comment with their thoughts, then either @angry-cellophane or I could contribute a fix?
(FYI @georgelee1 as we were talking about this yesterday.)
https://github.com/angry-cellophane/JenkinsPipelineUnit#configuration
Overriding these default values is easy:
if I use this code snippet to customize my pipeline test I have an exception that my file is not found.
I use a typical maven project structure
This happens because helper's properties are overridden by BasePipelineTest's properties.
https://github.com/angry-cellophane/JenkinsPipelineUnit/blob/master/src/main/groovy/com/lesfurets/jenkins/unit/BasePipelineTest.groovy
If I use BasePipelineTest's properties the test works fine
The text was updated successfully, but these errors were encountered: