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 can help you understand what is going on with your own plugin while you are developing it, and it can also help you to resolve issues in other plugins or Jenkins itself.
In this chapter, we will take a look at the following topics:
Testing: Under...