Skip to content
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

Fix basilisp test CLI command to pass remaining args to PyTest #1127

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

chrisrink10
Copy link
Member

@chrisrink10 chrisrink10 commented Nov 13, 2024

Fixes #1119

@ikappaki I think this change will work now. I tried it on 3.11.7, 3.12.7, and 3.13.0 using the repository and makefile you prepared to test and each worked as expected.

Comment on lines +757 to +771
Any options not recognized by Basilisp and all positional arguments will
be collected and passed on to PyTest. It is possible to directly signal
the end of option processing using an explicit `--` as in:

`basilisp test -p other_dir -- -k vector`

This can be useful to also directly execute PyTest commands with Basilisp.
For instance, you can directly print the PyTest command-line help text using:

`basilisp test -- -h`

If all options are unambiguous (e.g. they are only either used by Basilisp
or by PyTest), then you can omit the `--`:

`basilisp test -k vector -p other_dir`"""
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also addresses the comment about documenting the -- behavior.

@chrisrink10 chrisrink10 merged commit 90366ee into main Nov 13, 2024
12 checks passed
@chrisrink10 chrisrink10 deleted the fix/basilis-test-cli-command-again branch November 13, 2024 16:18
@ikappaki
Copy link
Contributor

Thanks @chrisrink10 , it all seems to be working fine now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cli command basilisp test does not work with Python 3.12.7
2 participants