-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Submitting some exercises results in Success no matter the code #79
Comments
Did you use a |
Hi @0xE282B0 |
That's a known issue with cobol-check, the test returns with zero return code even if not all tests are executed. |
But cobol-check also returns with zero return code, if some tests failed. |
Right, cobol-check itself always returns with zero RC. There is a potential enhancement issue openmainframeproject/cobol-check#224. There is no additional logic layer. |
Ok, then I do not understand how you determine succes of the testsuite. |
When a test fails the test program returns non-zero and the website shows that the exercise was not successful. But when you terminate the program during the test execution with a clean exit you pass the test. Do you have any ideas on how to determine that all tests have been executed? |
I have a couple of ideas. |
A return code other than zero should always indicate an error. I wasn't aware that cobol-check can output the results as XML. I tried to set |
@0xE282B0 if you want to get the result as xml, you need to use cobol-check for compiling and running the test. Perhaps Cobol check should be changed, so the generated cobol begins with setting return code 8. When the run is complete, the generated cobol should then set rc 4 if there are failed tests, and zero if no tests failed. |
I tried the Hello World and Collatz Conjecture exercises.
And both gives me succesful runs, without making the code that is needed for the tests to pass.
I then tried the Yacht exercise, and found that it works correctly.
So something is wrong in the setup of some of the exercises.
The text was updated successfully, but these errors were encountered: