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 34 Next »

Plugin Information

View xUnit on the plugin site for more information.

This plugin allows you to publish testing tools test result report.

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.

The plugin includes the support of:
* MSTest
* NUnit
* UnitTest++
* Boost Test Library
* CppUnit
* PHPUnit
* Free Pascal Unit

For each xUnit tool, an embedded style sheet is used.
The plugin enables also to use a custom style sheet for your own tool.

The plugin suppoorts some others xUnit framework with others plugin that extends the xUnit plugin:
* Parasoft C++Test (Cpptest Plugin)
* JSUnit (JSUnit Plugin)
* AUnit (Gnat Plugin)


History

Currently, there is a specify plugin for each tool that doesn't provide JUnit test result report.
For instance, NUnit plugin, CppUnit plugin, Gallio plugin, MSTest plugin.
It's more suitable to have a generic plugin aggregating xUnit tools.

Configuration

Usage

Boost Test Library

* Execute your Boost Test Library tests as a build step with the following
parameters "--output_format=XML --log_level=all --report_level=no".
* Give a pattern that specifies the boost tests result

A sample Boost result file for xUnit plugin

<TestLog>
   <TestSuite name="Master Test Suite">
      <TestSuite name="test_suite">
         <TestCase name="test_1">
            <Info file="test.cpp" line="9">check i == j passed</Info>
            <TestingTime>0</TestingTime>
         </TestCase>
         <TestCase name="test_2">
            <Error file="test.cpp" line="16">check i == j failed [1 != 2]</Error>
            <TestingTime>0</TestingTime>
         </TestCase>
      </TestSuite>
   </TestSuite>
</TestLog>

Compatibility with Hudson core

Version

1.318

1.319

1.320

1.321+

0.1

(tick)

(tick)

(error)
(JENKINS-4257)

(tick)

0.1.1

(tick)

(tick)

(error)
(JENKINS-4257)

(tick)

0.1.2

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

0.1.3

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

0.2

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

0.3

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

0.3.1

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

0.4

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

0.5

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

0.5.1

(error)

(tick)

(error)
(JENKINS-4257)

(tick)

Changelog

Version 0.6 (in progress)

* Add the support of GoogleTest?
(feedback on issue 3007 and google thread)

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