Hello,
I am currently writing unit tests for my jenkins plugin and I have some questions.
1. Is it normal when I run the unit tests, that my plugin isn't installed on the "unit test" jenkins instance automatically? I know that for each unit test a fresh jenkins instance get started. So are these instances really total clean - without any plugin installed (also mine)?
2. I used the annotation @LocalData to import predefined jenkins jobs. Problem: Test methods with this annotation don't get detected as unit tests. Example: In a class in have 2 methods annotated with @Test and 1 method with @LocalData. When I run this class as unit test, only the 2 methods with @Test get tested, the other method is ignored. I use JenkinsRule.
Thank you for your help.