The standard ‘buildPlugin()’ Jenkinsfile directive appears to capture Surefire test reports, but not Failsafe test reports. This means that failing integration tests in my plugin are (a) unreported and (b) don’t break the build. This might be happening to other plugins too.
I’ve worked around it by saving the Failsafe reports to the Surefire directory but this is extremely fragile: if I have an integration test class with the same name and package as a unit test class (which could happen if integration tests are stored in a different test source directory), then the report for one could overwrite the other.
Could someone confirm whether this is indeed a limitation in the current buildPlugin.groovy script or whether there is a different (robust) way to pick up Failsafe reports on
ci.jenkins.io?
Regards
Chris