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

Test command-line parsing configuration #60

Merged
merged 2 commits into from
Aug 20, 2024
Merged

Test command-line parsing configuration #60

merged 2 commits into from
Aug 20, 2024

Conversation

divarvel
Copy link
Collaborator

biscuit-cli uses clap to parse command line options and flags. Most of the logic happens at runtime, so it needs to be unit-tested. This was previously done through bash unit tests, by calling the executable directly.

clap provides an assertion helper that does that from rust unit tests instead. This is simpler and more exhaustive.

`clap` provides an assertion ensuring that the config is well-formed. This removes the need to use bash unit tests.
@divarvel divarvel merged commit 79da651 into main Aug 20, 2024
1 check passed
@divarvel divarvel deleted the test-clap branch August 20, 2024 12:56
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.

2 participants