Hi Tomek,

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.


-----Ursprüngliche Nachricht-----
Von: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxxxxxxxx] Im Auftrag von Mizerski Tomasz
Gesendet: Freitag, 22. November 2019 11:41
An: 'wdsci-l@xxxxxxxxxxxxxxxxxx'
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?

Best regards,
Tomek Mizerski

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.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.