Chapter 8. Testing and Debugging Jenkins Plugins

In this chapter, we will take a look at the testing and debugging of Jenkins plugins. We will explore several popular options and approaches that are currently available, and we will review the benefits and suitability of each approach.

Testing Jenkins plugins is reasonably straightforward if you are happy to simply run standard Java Unit tests, but if you wish to test and mimic interactions via the user interface, testing can become a little bit more involved. We will start off with a simple example and then look at some of the approaches and tools you may want to investigate further for more complex scenarios.

Being able to debug a Jenkins plugins is a valuable addition to your development skills—it ...

Get Extending Jenkins now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.