Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 119 Next »

Plugin Information

View xUnit on the plugin site for more information.

This plugin makes it possible to publish the test results of an execution of a testing tool in Jenkins.

Features

When this plugin is installed and configured, Jenkins can transform test result reports produced by different testing tools into JUnit test result format. The JUnit tests can then be recorded by Jenkins.
Jenkins can provide useful information about test results, such as the historical test result trend, web UI for viewing test reports, tracking failures, and so on.

The plugin includes the support of:
* MSTest (imported from MSTest Plugin)
* NUnit (imported form NUnit Plugin)
* UnitTest++
* Boost Test Library
* PHPUnit
* Free Pascal Unit

For each xUnit tool, an embedded style sheet is used.
The plugin also enables you to use a custom style sheet for your own tool such as :
* WebUI

There are other xUnit frameworks supported through other plugins that extend the xUnit plugin:
* CppUnit (CppUnit Plugin)
* Gallio (Gallio plugin)
* Parasoft C++Test tool(Cpptest Plugin)
* JSUnit (JSUnit Plugin)
* AUnit (Gnat Plugin)

xUnit Global Architecture

Under the hood, xUnit Jenkins plugin delegates processing to DTKit.

DTKit Activities for XUnit

DTKit Packaging

Configuration

* Execute your testing tools manually or as a step of your build chain
* Give a pattern that specifies your test results

New procedure for showing the details:

Manage Jenkins > System Log > Add new log recorder.

Give a name as 'xUnit Logger' and add the following logger:

* com.thalesgroup.hudson.plugins.xunit.service.XUnitService for a severity as 'all'

User Custom XSL

For tools using a stylesheet to convert into JUnit files, you are able to use your own XSL at Jenkins level.
Specify your XSLs in the JENKINS_HOME/useContent directory with the following convention
userContent/xunit/[toolName]/[version]/[your_xsl].

For example:
userContent/xunit/AUnit/3.1.1/aunit-to-junit.xsl

Note: The tool name and the version are taken from the label in the combo box from the UI.
If the tool doesn't have a version, do not create a version directory.

Compatibility with Hudson core

Version

1.318

1.319

1.320

Hudson 1.355+

Jenkins 1.396+

1.34

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.33

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.32

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.31

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.30

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.29

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.28

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.27

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.26.1

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.26

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.25

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.24

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.23

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.22

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.21

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.20

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.19

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.18

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.17

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.16.2

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.16.1

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.16

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.15

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.14

(error)

(tick)

(error)
(JENKINS-4257)

(question)

(tick)

1.13

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.12

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.11

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.10

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.9

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.8

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.7

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.6

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.5

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.4

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.3

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.2

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.1

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

1.0

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.6.1

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.6

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.5.3

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.5.2.1

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.5.2

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.5.1

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.5

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.4

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.3.1

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.3

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.2

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.1.3

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.1.2

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.1.1

(tick)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

0.1

(tick)

(tick)

(error)
(JENKINS-4257)

(tick)

(question)

Changelog

Version 1.34

* Accept test results when the number of tests is 0
* Added a JUnit type (therefore, xUnit plugin is an alternative to the JUnit archiver option)

Version 1.33

* Updated to DTKit 0.24 /- fix CppUnit format check

Version 1.32

* Fixed JENKINS-11908 - PHPUnit results xml fails to parse

Version 1.31

* Fixed JENKINS-11858 - xUnit v1.30 fails with NullPointerException when parsing cppnit results

Version 1.30

* Added a threshold for skipped tests and failed tests

Version 1.29

* Make it compatible to the DryRun Plugin
Note: Built against Jenkins 1.410 required by the dry-run plugin.
Without the dry-run feature, the plugin is compatible to 1.409 series (LTS)

Version 1.28

* Added the ability to override embedded XSLs at Jenkins level (look above for documentation)

Version 1.27

* Fixed reponed JENKINS-11552 - xUnit don't work with NUnit test since 1.25

Version 1.26.1

* Added error messages when an issue occurs

Version 1.26

* Fixed reponed JENKINS-9286 - xUnit plugin cannot parse XML output with exception from boost test 1.42

Version 1.25

* Introduced Alias for the job configuration file
* Updated to dtkit-default-junit 0.22 (Removed unused descriptor method)

Version 1.24

* Fixed JENKINS-11344 - xUnit fails to parse boost test log

Version 1.23

* Fixed JENKINS-10909 - Added support of Check tool

Version 1.22

* Fixed JENKINS-10717 - xUnit boost test log processing fails on nested test suites (BOOST_AUTO_TEST_SUITE)

Version 1.21 (technical release)

* Removed unused transitive dependencies

Version 1.20

* Fixed JENKINS-10404 - UnitTest++ "time" element is ignored in results page, Duration field reported as 0ms

Version 1.19

* Fixed JENKINS-9286 - xUnit plugin cannot parse XML output with exception from boost test 1.42

Version 1.18

* Updated to DTKIT JUnit Format 0.16 - Added the support of skipped element

Version 1.17

* Updated to DTKIT Default Junit 0.17
* Updated to Jenkins 1.411 metadata

Version 1.16.2

* Fixed JENKINS-9106 Custom type configuration does not pick up "Stop Processing If Error" flag

Version 1.16.1

* Fixed reopen JENKINS-8843 The plugin hasn't been performed correctly: null
* Fixed JENKINS-8901 The plugin hasn't been performed correctly: Unable to serialize hudson.FilePath$FileCallableWrapper@b749a3

Version 1.16

* Fixed JENKINS-8843 The plugin hasn't been performed correctly: null

Version 1.15

* Fixed JENKINS-6344 - fail build if any empty files exist, or provide option to do it
* Fixed JENKINS-7612 - Superfluous INFO messages in console output
* Updated to Jenkins 1.397 API and metadata

Version 1.14

* Fixed JENKINS-8492 - NUnit test suites is not parsed correctly
* Fixed JENKINS-8553 - BoostTest output coverting to JUnit format can't be recognized if contains Exceptions in boostTest result
* Fixed JENKINS-8485 and JENKINS-8516
* Fixed JENKINS-8787 CustomTypeDescriptor throws a RuntimeExcetion at startup
* Updated to DTKIT Default Junit 0.15
* Updated to DTKIT DEFAULT FRMK 0.12
* Updated to DTKIT FORMAT 0.13
* Updated to Jenkins 1.396 API and metadata

Version 1.13

* Updated to DTKIT Default Junit 0.13
* Updated to DTKIT DEFAULT FRMK 0.11

Version 1.12

* Updated to DTKIT Default Junit 0.12
* Updated to DTKIT DEFAULT FORMAT 0.12

Version 1.11

* Updated to DTKIT FRMK 0.10
* Updated to DTKIT FORMAT 0.10
* Fixed JENKINS-7943 - BOOST TestType hides master suites in the hierachy
* Fixed JENKINS-7925 - BOOST TestType fail during validation

Version 1.10

* Updated to DTKIT FRMK 0.9
* Updated to DTKIT FORMAT 0.9
* Removed Guice injection on slave mode due to classloading issues.

Version 1.9

* Updated to DTKIT Default Junit 0.9
* Updated to DTKIT FRMK 0.8
* Fixed JENKINS-7463 - BoosTest XSD enhanced
* Fixed JENKINS-7323 - Can't create the report path

Version 1.8

* Updated to DTKIT Default Junit 0.7
* Updated to DTKIT FRMK 0.6
* Fixed JENKINS-7336

Version 1.7

* Updated to DTKIT Default Junit 0.6
* Updated to DTKIT FRMK 0.5
* Restored the CustomType (enables users to provide a custom XSL) removed from 1.0

Version 1.6

* Updated to DTKIT Default Junit 0.4 (Fixed reopened JENKINS-6951)
* Updated to DTKIT FRMK 0.2

Verision 1.5

* Updated to DTKIT Default Junit 0.3 (Fixed JENKINS-6951)

Verision 1.4

* Fixed the help file

Verision 1.3

* Updated to DTKit 0.2 (Fixed PHPUnit xsd and xsl)
* Added the display of validation errors in the console for input and output files.

Version 1.2

* Fixed big regression issue for backward compatibility with xUnit 0.6 JENKINS-6946

Version 1.1

* Improved deletion algorithm.

Version 1.0

* xUnit currently follows a new model based on dtkit

Version 0.6.1

* Spelling Correction

Version 0.6

* Removed Embedded Cppunit plugin (Cppunit plugin extends xUnit plugin)
* Removed Embedded Gallio plugin (Gallio plugin extends xUnit plugin)

Version 0.5.3

* Added 'Delete Temporary JUnit files' option

Version 0.5.2.1

* Fixed JENKINS-5680 : Fixed regression introduced in 0.5.2: Added backward compatibility with a previous
configuration before 0.5.2

Version 0.5.2

* Fixed JENKINS-4945 : Show one graph when JUnit publisher is actived
* Fixed JENKINS-4931 : Adding a check-box option 'Fail the build if test results were not
updated this run'

Version 0.5.1

* Fixed some labels

Version 0.5

* Added the support of Free Pascal Unit

Version 0.4

* Removed the AUnit support.
AUnit (Ada test framework) is provided by the Gnat Plugin.
Note: Gnat plugin extends the xUnit plugin

Version 0.3.1

* Restored the removed feature in xUnit 0.2 : Added the ability to use a custom xUnit tool with a custom style sheet.
* You can override the embedded stylesheet by a one at the workspace level.

Version 0.3

* Fixed issue 4416

Version 0.2

* The plugin use @Extension and ExtensionPoint to allow other plugins to add a Descriptor (issue 4315)
* [BoostTest Library] - Display the output of the macros MESSAGE,INFO and WARNING in Hudson test results
* [PHPUnit] - Fixed stylesheet
* Fixed bug on suite name content with special character

Version 0.1.3

* [BoostTest Library] - Flatten root package

Version 0.1.2

* Fixed "java.lang.NoSuchMethodError: java.lang.String.isEmpty()"
* Added the ability to work on slaves

Version 0.1.1

* Fixed java.util.MissingResourceException on Linux Plateform
* [BoostTest] - Fixed tests duration issue with Boost Test Library

Version 0.1

* Initial release

  • No labels