Allows JUnit-format test results to be published.

{jenkins-plugin-info:pluginId=junit|jiraComponent=junit-plugin}

The JUnit plugin provides a publisher that consumes XML test reports generated during the builds and provides some graphical visualization of the historical test results (see JUnit graph for a sample) as well as a web UI for viewing test reports, tracking failures, and so on. Jenkins understands the JUnit test report XML format (which is also used by TestNG). When this option is configured, Jenkins can provide useful information about test results, such as trends.

This functionality was part of the Jenkins Core until it was split out to this plugin in version in 1.577.

Configuration

The JUnit publisher is configured at the job level by adding a Publish JUnit test result report post build action. The configuration parameters include:

Changelog

Version 1.26 (Sep 25 2018)

Version 1.24 (Feb 5 2018)

Version 1.23 (Nov 27 2017)

Version 1.22.2 (Nov 15 2017)

Version 1.22.1 (Nov 14 2017)

Version 1.22 (Nov 14 2017)

Version 1.21 (Aug 4 2017)

Version 1.20 (Feb 13 2017)

Version 1.19 (Oct 17 2016)

Version 1.18 (Aug 08 2016; 1.16 & 1.17 were botched)

Version 1.15 (Jul 12 2016)

Version 1.14 (Jul 5 2016)

Version 1.13 (May 1 2016)

Version 1.12 (Apr 20 2016)

Version 1.11 (Feb 25 2016)

Version 1.10 (Dec 10 2015)

Version 1.9 (Sep 3 2015)

Version 1.8 (Jul 29 2015)

Version 1.7 (Jul 17 2015)

Version 1.6 (May 01 2015)

Version 1.5 (Mar 11 2015)

Version 1.4 (Feb 04 2015)

Version 1.3 (Dec 03 2014) (requires 1.580.1+)

Version 1.2 (Nov 06 2014)

Version 1.2-beta-4 (Nov 04 2014)

Version 1.2-beta-3 (Oct 25 2014)

Version 1.2-beta-2 (Oct 20 2014)

Version 1.2-beta-1 (Aug 25 2014)

Version 1.1 (Aug 25 2014)

Version 1.0 (Aug 11 2014)

Initial version after split.