jenkins-ctest-plugin + xUnit-plugin = test reports for Jenkins-CI
- Make sure you've installed the xUnit Plugin
- Get the
ctest-to-junit.xsl
file onto your Jenkins server(s) - I tend to use a Git Submodule to pull this repo into other projects
- When configuring your Job, enable the xUnit Plugin and select the Custom Tool option
- Specify a pattern for ctest files to transform
- Specify the path to the
ctest-to-junit.xsl
stylesheet - GO!
You might want to look at run-test-and-save.sh
to see one way of prompting CTest to generate XML output and then moving it. You can execute that script as a build step from your build directory, and then your "pattern" will be BUILDDIR/CTestResults.xml
.
jenkins-ctest-plugin is covered under the MIT License. See LICENSE for more information.
Based on WebUI-plugin