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 29 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 supported tools are:
* AUnit
* MSTest
* NUnit
* UnitTest++
* Boost Test Library
* CppUnit
* PHPUnit

For each tool, an embedded style sheet is used.
You can also add your own tool with your custom style sheet.

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)

Changelog

Version 0.3 (in progress)

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

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 (Augut 21)

* [BoostTest Library] - Flatten root package

Version 0.1.2 (Augut 20)

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

Version 0.1.1 (Augut 18)

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

Version 0.1 (Augut 17)

* Initial release

  • No labels