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:
Example:
Before iRPGUnit 3.0:
With iRPGUnit 3.0:
/copy RPGUNIT1,TESTCASE
/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.