xUnit Plugin

Plugin Information

Plugin ID xunit
Latest Release 1.53-h-1
Latest Release Date Apr 2, 2013
Plugin Central Plugin Central 3.2
Sources Github
Support Eclipse Hudson Forum
Issue Tracking Eclipse Bugzilla
Hudson Core (latest) 3.3.3

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


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


Job Configuration

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

Showing the details:

Manage Hudson > System Log > Add new log recorder.

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

  • "XUnitService" for a severity as 'all'

Provide User XSL

For tools using a stylesheet to convert into JUnit files, you are able to use your own XSL at Hudson level.
Specify your XSLs in the HUDSON_HOME/useContent directory with the following convention

For example:

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.


plugin-report plugin-report Delete
tier3-compat-plugin tier3-compat-plugin Delete
tier3-hudson-plugin tier3-hudson-plugin Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Aug 18, 2010

    Jon Black says:

    I'm using boost test with this plugin and get the following output: [xUnit] Sta...

    I'm using boost test with this plugin and get the following output:

    [xUnit] Starting to record.
    [xUnit] Can't create the path D:\Develop\generatedJUnitFiles. Maybe the directory already exists.
    [xUnit] [BoostTest-1.35.0 (default)] - Processing 5 files with the pattern 'boost-test-*.xml' relative to 'D:\Develop'.
    [xUnit] [INFO] - Converting 'D:\Develop\boost-test-Module1.xml' .
    [xUnit] [INFO] - Converting 'D:\Develop\boost-test-Module2.xml' .
    [xUnit] [INFO] - Converting 'D:\Develop\boost-test-Module3.xml' .
    [xUnit] [INFO] - Converting 'D:\Develop\boost-test-Module4.xml' .
    [xUnit] [INFO] - Converting 'D:\Develop\boost-test-Module5.xml' .
    [xUnit] The plugin hasn't been performed correctly: None of the test reports contained any result
    Finished: FAILURE
    My boost test XML files do contains results, and lots of them. An example of a converted file is:

    <testsuite tests="2" errors="0" failures="0" name="Master Test Suite" skipped="0"/>

    I'm using boost 1.39 but I don't think that's the problem otherwise the conversion would fail, surely? I'm using 1.6 of the xunit plugin on Hudson 1.371.

    As a side note, I would have loved to have created a bug report for this, but Jira is less than obvious on how to do that.