There are several ways to run "parametrized" unit tests as described by Ken and Justin. I am not sure whether or not it is worth the effort to change RPGUNIT similar to the example shown here: https://github.com/junit-team/junit4/wiki/Parameterized-tests
Changing the RPG runner should not be a big deal, but changing the data interface (user space layout) and the plug-in is another thing and the only benefit we would get is an option to run a specific iteration of a test case.
The key is to find some time to get deeper into the details of changing the plug-in.
Von: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxxxxxxxx] Im Auftrag von Mizerski Tomasz
Gesendet: Freitag, 22. November 2019 11:41
Betreff: [WDSCI-L] RPGUNIT Parameterized Unit Tests
Is there any way to use rpgunit like for parameterized tests? What I mean exactly is to use one test procedure many times for different data every time.
Here is my example: I have created a file with testing scenarios - each record contains input and output data for procedure I want to test. Let's assume I have got 50 such rows. Now, is there any way to use one test procedure for 50 times instead of creating 50 test procedures?
This email message and any attachments may contain confidential information and may be privileged. If you are not the intended recipient or otherwise not authorized to receive this message, you are prohibited to use, copy, disclose or take any action based on this email or any information contained herein. If you are not the intended recipient, please advise the sender immediately by replying to this email and permanently delete this message and any attachments from your system.
As an Amazon Associate we earn from qualifying purchases.