--20cf303f6bca23f23704af6d73e9 Content-Type: text/plain; charset=ISO-8859-1 I have a friend who tested COBOL with ruby by outputing the COBOL crap, and testing the output. Let me know if this helps. On Sun, Oct 16, 2011 at 12:57 PM, Richard Conroy <richard.conroy / gmail.com>wrote: > 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 > -- Sincerely, Isaac Sanders Section C-4B Vice Chief, Order of the Arrow Vice Chief of Administration, Tecumseh #65 Eagle Scout --20cf303f6bca23f23704af6d73e9--