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

blackbox test: actually assert something #73

Merged
merged 1 commit into from Apr 23, 2022
Merged

blackbox test: actually assert something #73

merged 1 commit into from Apr 23, 2022

Conversation

marco-m
Copy link
Contributor

@marco-m marco-m commented Jul 19, 2021

The helpValues_blackbox_test was not asserting anything. We now intercept stderr and validate that the help output is what is expected.

Note that the added dependency in go.mod github.com/google/go-cmp is used only by the tests.

the helpValues_blackbox_test was not asserting anything. We now intercept stderr and validate that the help output is what is expected.

Note that the added dependency in go.mod github.com/google/go-cmp is used _only_ by the tests.
Copy link
Owner

@integrii integrii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a cool way to test this! Thank you for contributing!

@integrii integrii merged commit 1ae79a1 into integrii:master Apr 23, 2022
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.

None yet

2 participants