I have the following Jenkinsfile:
pipeline{
stages
{
stage ("Compile Everything") {/**/} // Code coverage flags turned on
// Stashes compiled test binaries.
stage ("Parallel Tests"){
parallel{
stage ("Run Tests A-L") {/**/} // These stages unstash and run groups of tests,
stage ("Run Tests L-Z") {/**/} // causing coverage files to be created.
// I analyze those coverage files via
// gcovr and stash the results as xml.
}
}
stage ("Combine and Publish Coverage") {/**/} // Here I can unstash all of the xml
// code coverage files, but don't know
// how to combine them.
}
}
In that final stage, "Combine and Publish Coverage" is it possible to combine all of the xml files created by gcovr?
Has anyone solved the problem of testing in parallel and combining coverage results in another way entirely?