Robust Unit Testing of Pipeline Code with Spock

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

Can you share the location of source code used in the demo?

saurabht