I have a groovy file created under "vars" in a Jenkins-shared-lib. Few variables are defined inside call(). I want to mock the variables in a groovy t ...
I have a groovy file created under "vars" in a Jenkins-shared-lib. Few variables are defined inside call(). I want to mock the variables in a groovy t ...
So I have a scripted shared pipeline library in my vars folder that returns some value at the end: Now I try to test it like this: This won't wo ...
Here is a (simplified) piece of code and the related unit test I wrote, and for which I was happy until recently. File vars/deleteFile.groovy File ...
While writing tests I sometimes just want to write text to the console for debugging. How do I do this in a spock test? I tried using the logger but ...
I'm very new to SPOCK so excuse me if this a silly question. I've done report setup in my Maven based Spock-Groovy project as mentioned in the below g ...
JenkinsPipelineSpecification based tests fail with the error: java.lang.NoSuchMethodError: com.google.common.collect.Sets$SetView.iterator()Lcom/googl ...
I am writing a Jenkins pipeline library, and am having some difficulties with mocking/validating an existing Jenkins pipeline step. I am using jenkin ...