-
Notifications
You must be signed in to change notification settings - Fork 316
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
Implement some CLI testing #4642
Comments
To broaden the field a bit, you can also use Aruba with RSpec, in case programming-via-regex (i.e., Cucumber) isn't your thing. Also, we have institutional knowledge of testing Rust CLIs in delivery-cli. |
There's also |
Thanks for the tip @kbknapp ! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
1 similar comment
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We value your input and contribution. Please leave a comment if this issue still affects you. |
To prevent regressions in basic CLI functionality, we should have an automated test suite that exercises it.
Possibilities:
Informal polling of Habitat members (i.e., three of us talking in Slack one day) shows a roughly split opinion between those two options; other ideas are certainly up for discussion, as well.
As a way to decide, coding up an "easy" test and a "hard" test in each and comparing / contrasting the results would be informative.
UPDATE: As mentioned by @kbknapp below, assert_cli is a Rust library for CLI testing which may be worth investigating as well.
The text was updated successfully, but these errors were encountered: