Skip to content

make run_tests() return exit code for programmatic use#18

Merged
aiwonderland merged 1 commit intomore-abc:masterfrom
qorexdev:wrap-run-tests-function
Apr 6, 2026
Merged

make run_tests() return exit code for programmatic use#18
aiwonderland merged 1 commit intomore-abc:masterfrom
qorexdev:wrap-run-tests-function

Conversation

@qorexdev
Copy link
Copy Markdown
Collaborator

@qorexdev qorexdev commented Apr 6, 2026

run_tests() now returns the subprocess exit code so you can actually use it as a callable instead of CLI-only. Also wired up sys.exit in main so the script still propagates the exit code when run from command line.

Closes #15

@qorexdev qorexdev requested a review from aiwonderland as a code owner April 6, 2026 02:12
@aiwonderland aiwonderland added the enhancement New feature or request label Apr 6, 2026
@aiwonderland aiwonderland merged commit cff3fd4 into more-abc:master Apr 6, 2026
2 of 3 checks passed
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 6, 2026

🎉 PR merged successfully! Thank you for your contribution.

@qorexdev
Copy link
Copy Markdown
Collaborator Author

qorexdev commented Apr 6, 2026

it was requested in #15 — wrapping the test runner into a callable function so you can invoke it programmatically instead of CLI every time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Wrap the run_tests.py in the tests directory into a function

2 participants