JUnit support for Jenkins

Last edited on

The Squish Jenkins Integration also produces JUnit results which can be read by Jenkins to show a graphical test result trend.

The JUnit XML files are saved inside the workspace subfolder squish_junit of the Jenkins job.

All needed to do is to enable the Publish JUnit test result report option inside the Post-build Actions of the job as shown here:

After running the job Jenkins will evaluate the JUnit files of the squish_junit folder and will save the result inside the ${BUILD_ID}/junitResult.xml file of the job's builds directory. For Jenkins environment variables please see Jenkins Set Environment Variables.

After the JUnit post-build action has been run it's save to remove the squish_junit folder from the workspace folder if no longer needed.