GatorEducator / execexam

:rocket: ExecExam runs executable examinations that assess Python programming skills
https://pypi.org/project/execexam/
1 stars 3 forks source link

Feature: Strings instead of numerical values for exit code outputs #11

Closed Chezka109 closed 2 days ago

Chezka109 commented 2 weeks ago

Description: The pytest tool currently uses numerical values for exit codes. We propose transitioning to string-based exit codes to enhance readability and maintainability. This issue aims to track the transition process and establish a procedure for updating the issue tracker when new exit codes are introduced by pytest.

Expected Behavior: Exit codes are represented as descriptive strings (e.g., "The tests have failed." instead of 1). The codebase and documentation reflect the new string-based exit codes. An automated monitoring process is in place to detect and track new exit codes introduced by pytest. The issue tracker is updated promptly with any changes to pytest exit codes.

Actual Behavior: pytest currently uses numerical exit codes. Existing code and documentation reference these numerical codes. There is no current process for tracking changes to exit codes or updating the issue tracker.

Chezka109 commented 2 days ago

The behavior when running echo $? is because shell exit codes must always be integers, not strings. Therefore, there is no way for exit codes to return strings instead of numerical values. This issue is now closed.