-
Notifications
You must be signed in to change notification settings - Fork 952
Add test for cli ui #3205
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
Add test for cli ui #3205
Conversation
8bf8c7f
to
57826e0
Compare
5686001
to
8014377
Compare
rustup-init[EXE] [FLAGS] [OPTIONS] | ||
|
||
FLAGS: | ||
-v, --verbose Enable verbose output |
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.
I'm not sure if this will be stable as clap evolves - we may want to do things like
--verbose[...] Enable verbose output
: but we can do that if we need to, not right now ;)
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.
Yes. we can update it if we need to.
Thanks for your review! 💚 💙 💜 💛 ❤️
Signed-off-by: hi-rustin <[email protected]>
Signed-off-by: hi-rustin <[email protected]>
8014377
to
0facdf6
Compare
let rustup = trycmd::cargo::cargo_bin("rustup"); | ||
t.register_bin("rustup-init", &rustup_init); | ||
// Copy rustup-init to rustup so that the tests can run it. | ||
fs::copy(&rustup_init, &rustup).unwrap(); |
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.
You could also export RUSTUP_FORCE_ARG0='rust', but the copy is fine.
ref #3064 (comment)
Add ui tests for cli. Then we can try to bump clap's version.
Some notes:
...
to ignore the first line of the subcommand bin name.man
command on windows, we need to skip the man's test on windows.