-
-
Notifications
You must be signed in to change notification settings - Fork 647
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
Forwarding command line arguments to raco test #1726
Conversation
… of pattern matching.
Thanks for the PR! See also #1357. I think @samth didn't merge that one because he didn't finish the docs, so I appreciate that you've added docs here. The If you're not opposed to the |
P.S. I think |
I don't have a strong opinion on the syntax, the The one possible issue I can see with |
The current convention is that I can imagine a |
Thanks for the feedback @mflatt I think that ++arg and ++args are the right thing for Conor to do. Sorry for not noticing it before. |
I'm having some issues getting For example, if the user types But consider if the user types |
You're right that What if a user wants to pass In other words, |
I see, thank you! |
Okay |
@@ -91,9 +93,9 @@ | |||
(provide go) | |||
(define (go pch) | |||
(define l (place-channel-get pch)) | |||
(define args (cadddr (cdr l))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use list-ref
instead of the old school way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh, it looks like you are just adapting old code so no worries
I think this should be merged |
This looks good to me, too, so I'll merge. I'll probably adjust the doc wording "must be enclosed in quotation marks", because that assumes a particular kind of shell context, but the intent is clear enough, and I'll have to give the right words more thought. |
Excellent |
We forgot about adding a |
The changes in this pull request allow users of raco test to specify additional command-line arguments to be forwarded to any invoked test modules. This enables authors of testing libraries to use these forwarded arguments as a set of predicates upon which to filter the running tests, or any other purpose they see fit.
The forwarded arguments are specified with a trailing
--
after all flags and argument paths, followed by any arguments to be forwarded. For example, the commandraco test module.rkt -- more args
will invokemodule.rkt
with the command-line argumentsmore args
. These additional arguments are combined with any arguments specified ininfo.rkt
bytest-command-line-arguments
.