Back to Browse

Robust Unit Testing of Pipeline Code with Spock

7.6K views
Nov 7, 2018
45:13

Jenkins Pipeline feature introduces the notion of pipeline as code. If it's code, it needs unit tests, right? Right. HomeAway has developed a Jenkins Pipeline extension for the industry-standard Spock unit testing framework for Groovy. This extension enables complete and intuitive testing, mocking, stubbing and verification of code written in Jenkins Pipeline DSL. Whether you need to unit test helper functions in your Jenkinsfile or just verify that a few key steps happen in the right way, you can use all of the Spock idioms to add validation of your pipeline as code to your software's lifecycle.

Download

1 formats

Video Formats

360pmp483.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Robust Unit Testing of Pipeline Code with Spock | NatokHD