Upgrading From v2.4.2 to v3.0.0

The most important thing you need to know is, that iRPGUnit 3.* requires at least IBM i 7.1. Older versions are no longer supported.

You need to update your RPGUNIT product library when upgrading the plug-in to 3.0.0, in order to take advantage of all new features.

But it is not a show stopper when you updated the plug-in and afterwards notice that you cannot update the library for whatever reasons. The plug-in can run with a 2.* library. However some new features may not be available, such as the new XML stream file output.

All your existing unit test suites should run fine with iRPGUnit 3.0.0. However:

Test your existing test suites carefully in a sandbox environment, before upgrading to iRPGUnit 3.0.0.

The following RPGUnit self-tests (compiled with v2.4.2) run fine with iRPGUnit:

The following RPGUnit self-tests (compiled with v2.4.2) do not run with iRPGUnit:

Existing test suites cannot be compiled with iRPGUnit 3.0, because source member TESTCASE has been moved to source file QINCLUDE.

Follow these steps to fix the problem:

  1. Open the source member of an existing v2.x test suite.
  2. Locate the /copy statement that includes source member TESTCASE.
  3. Change that statement to include TESTCASE of source file QINCLUDE.

Example:

Before iRPGUnit 3.0:

/copy RPGUNIT1,TESTCASE
With iRPGUnit 3.0:
/copy QINCLUDE,TESTCASE

Another option to fix the problem is to duplicate member TESTCASE of source file QINCLUDE to source file RPGUNIT1.

CRTSRCPF FILE(RPGUNIT/RPGUNIT1) RCDLEN(112)
CPYF FROMFILE(RPGUNIT2/RPGUNIT1) TOFILE(RPGUNIT/RPGUNIT1) FROMMBR(TESTCASE) TOMBR(*FROMMBR) MBROPT(*ADD)

For a period of transition iRPGUnit is shipped with a duplicate of member TESTCASE in file RPGUNIT1.