openmainframeproject / cobol-check

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

Cobol-check always has a zero return code #224

Closed 0xE282B0 closed 1 year ago

0xE282B0 commented 2 years ago

Hi, I was using cobol-check in a script and it always has a zero return code. No matter what the *-gnucobol_run_tests script returns. The version I am using is built from sources, therefore I want to ask if you can confirm that behavior.

dakaa16 commented 2 years ago

HI @0xE282B0 I'll get on fixing that now

dakaa16 commented 2 years ago

Hello again @0xE282B0 I misinterpreted your issue. There was a bug regarding return codes, however not regarding the return code of the script. I believe it would be confusing, letting Cobol Check return the return code of the script, as it might be seen as Cobol Check not running as expected. I do however also see the benefit of simply relying on a return code to see if all test assertions was successful. If it's something you need, we could make this a feature request