Integration with Jenkins - xspec/xspec GitHub Wiki

Jenkins is one of the most popular Continuous Integration servers. XSpec tests can be easily integrated with Jenkins: XSpec test results are outputted in JUnit which is understood natively by Jenkins and this allows to automatically generate charts and metrics inside Jenkins.

Here are some screenshot showing how to integrate XSpec tests in Jenkins.

Install the Jenkins Git Plugin and configure it so that it pulls out XSpec from the GitHub repository:

git configuration

In Build -> Execute shell set the path to your Saxon version (here Saxon EE) and execute your XSpec test (here I'm using the tutorial file that ships with XSpec). Note the following:

  • Use the -j flag to generate JUnit results
  • In Post-build Actions set the directory where the JUnit file is generated

jenkins_build_configuration

Here are examples of the charts generated by Jenkins:

jenkins_build_trend

jenkins_failing_xspec_test