Plug-in Documentation

JUnit for IBM UrbanCode Build

Overview

JUnit is a unit testing framework for the Java programming language.

The JUnit plug-in is used to publish results from a JUnit test into a report as part of the build process. This plug-in includes the following step:

Step palette

To access this plug-in in the palette, click Quality > Testing > JUnit.

Compatibility

This plug-in requires IBM UrbanCode Build version 6.1 and later.

The plug-in runs on any agents that the IBM UrbanCode Build server supports.

Installation

No special steps are required for installation. See Installing plug-ins in UrbanCode.

History

Version 9

Address a potential 500 server response due to having test suites with no names.

Version 8

Add optional timeout setting for calls to UCB server.

Version 7

Support property file encryption.

Version 6

Update the description of step properties

Version 5

Version 5 includes the following features and fixes:

  • Added RPX dependency.
  • Translation for step information.

Version 4

Version 4 includes the following features and fixes:

  • Fixed a communication issue where the UrbanCode Build server would fail if it was running with an IBM JDK or JRE.

Version 3

Version 3 includes the following features and fixes:

  • Update to a newer version of a library for HTTP communication.

Steps

Process steps in the JUnit plug-in

JUnit Report

Use this step to publish JUnit results as a report.

Input properties for the JUnit Report step
Name Type Description Required
Exclude Patterns String A list of patterns used to determine which JUnit XML files to exclude from the report.
Specify each pattern on a new line. Files that match the specified
patterns are unconditionally excluded from the report. Patterns can include ?, *,
or **.
No
Include Patterns String A list of patterns used to determine which JUnit XML files to include in the report.
Specify each pattern on a new line. Patterns can include ?, *, or **.
Yes
Report Name String The name of the report. No
Request Timeout String The timeout value in milliseconds to use for the HTTP requests sent to the UCB server. No
Source Directory String The directory that contains the test output. Yes
Truncate Test Suite Name Boolean Remove the package name from the published test suite name. If this property is not enabled, the full class name of the test suite is included. No