From: Richard Conroy Date: 2011-10-17T01:57:42+09:00 Subject: Re: How to unit test COBOL using Ruby --001485e7e6e639e89e04af6d631a Content-Type: text/plain; charset=ISO-8859-1 On Sun, Oct 16, 2011 at 5:12 PM, Balakrishnan Srinath < balakrishnansrinath@gmail.com> wrote: > Hello, > I would appreciate any COBOL unit test tutorail (I am a newbie to Ruby). > Thank you, > Bala > You might want to start with basic COBOL unit testing in general. If you know how to stub out the production elements of your COBOL code, and can execute your code from the terminal, it should be possible to write your tests in Ruby. However, these would be more correctly called acceptance tests (you are probably testing high level functionality) rather than unit tests. Unit testing, i.e. testing the smallest units of code (methods/functions/procedures) requires that your test code is able to invoke or call methods, functions or procedures in your production code. I don't know of any Ruby to COBOL bridge that can achieve this. If you have some luck finding a Java to COBOL bridge (interpreted or compiled) you might have some luck integrating it with Ruby. But I think that any such a project might be quite rare or commercial. regards, Richard -- http://richardconroy.blogspot.com | http://twitter.com/RichardConroy --001485e7e6e639e89e04af6d631a--