openmainframeproject / cobol-check

A testing framework for Cobol applications
Apache License 2.0
78 stars 28 forks source link

Testing a callable program - error: executable program requested but PROCEDURE/ENTRY has USING clause #339

Open rogervinas opened 8 months ago

rogervinas commented 8 months ago

Hi! I created this simple example Tests Everywhere - COBOL

In this example I can easily test: 1) HELLO-MESSAGE paragraph 2) HELLO paragraph mocking paragraph HELLO-MESSAGE and call to program HELLO-CONSOLE

But I am just curious how I should test HELLO-CONSOLE program, If I just try I get this error:

CC##99.CBL:139: error: executable program requested but PROCEDURE/ENTRY has USING clause

Is there any way to test it? I created this PR to reproduce it https://github.com/rogervinas/tests-everywhere/pull/56

Thanks for this cool project!