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

Implement some CLI testing #4642

Open
christophermaier opened this issue Feb 21, 2018 · 6 comments
Open

Implement some CLI testing #4642

christophermaier opened this issue Feb 21, 2018 · 6 comments
Labels
Focus: CLI Related to the Habitat CLI (core/hab) component Stale Type:Stability

Comments

@christophermaier
Copy link
Contributor

christophermaier commented Feb 21, 2018

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.

@christophermaier
Copy link
Contributor Author

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.

@kbknapp
Copy link

kbknapp commented Feb 22, 2018

There's also assert_cli which seems to be gaining popularity in the Rust community that may help. I haven't used the suggestions above, so I can't compare between them.

@christophermaier
Copy link
Contributor Author

Thanks for the tip @kbknapp !

@stale
Copy link

stale bot commented Apr 3, 2020

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.

@stale stale bot added the Stale label Apr 3, 2020
@christophermaier christophermaier added Focus: CLI Related to the Habitat CLI (core/hab) component and removed A-cli labels Jul 24, 2020
@stale stale bot removed the Stale label Jul 24, 2020
@stale
Copy link

stale bot commented Sep 20, 2022

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
@stale
Copy link

stale bot commented Oct 15, 2023

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.

@stale stale bot added the Stale label Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus: CLI Related to the Habitat CLI (core/hab) component Stale Type:Stability
Projects
None yet
Development

No branches or pull requests

4 participants