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: use golden in test output cli #1057

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

maxwelbm
Copy link
Contributor

@maxwelbm maxwelbm commented Jan 17, 2025

A suggestion for improving the quality of output verification :)

Package golden testing with golden files in Go. A golden file is the expected output of test, stored as a separate file rather than as a string literal inside the test code. So when the test is executed, it will read data from the file and compare it to the output produced by the functionality under test. Ref

…racters or changes by having good validation
@maxwelbm maxwelbm requested a review from a team as a code owner January 17, 2025 13:44
@maxwelbm maxwelbm changed the title test: test output cli test: use golden in test output cli Jan 17, 2025
@maxwelbm maxwelbm closed this Jan 17, 2025
@maxwelbm maxwelbm reopened this Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant