Hi everyone,
I am fairly new to contributing to Jenkins plugins and have recently started working on a small enhancement for an existing plugin. While I am comfortable writing the core functionality.., I would really appreciate some guidance on writing effective unit tests for Jenkins plugins.
Here are a few things I’m unsure about:
What testing framework is most commonly used for Jenkins plugin development: ??
Are there recommended patterns or utilities to mock Jenkins APIs: ??
How much test coverage is typically expected for a decent PR: ??
Any examples of well-tested plugins I could learn from: ??
I want to ensure my contributions align with Jenkins community standards and follow best practices. If you have any advice, resources, or even sample PRs that demonstrate clean test implementations.., I would love to check them out !! I have also gone through this https://stackoverflow.com/questions/13599604/using-jenkins-ci-for-unit-testing-sql-training-in-hyderabad
but couldn’t get enough help.
Thanks in advance for any help !!
Marcelo Salas