RPGUnit is an open source framework aimed at making unit testing easy for RPG developers.
It is a regression testing framework, similar to JUnit but written in RPG ILE, a procedural language mainly found on the iSeries platform.
Full documentation is available at the SourceForge Website
Instructions on how to install are available here
Here's an example of a basic test to show how the framework is used
h nomain
/copy rpgunit1,testcase
d test_failure pr
p test_failure b export
d pi
/free
iEqual(4: 2 + 2);
/end-free
p e
Read more at http://rpgunit.sourceforge.net/tutorial.html