Closed
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add golden test for gh aw --help output
Add golden test for Dec 9, 2025
gh aw --help output
Collaborator
|
This test will fail on every change to the help strings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds snapshot testing to detect unintended changes to CLI help output.
Changes
cmd/gh-aw/help_output_test.go: Integration test comparinggh aw --helpoutput against golden fileUPDATE_GOLDEN=1environment variable updates snapshotcmd/gh-aw/testdata/help_output.golden.txt: Baseline snapshotCONTRIBUTING.md: Documents golden file update workflowUsage
Update golden files after intentional help text changes:
UPDATE_GOLDEN=1 go test -v -tags integration -run TestHelpOutputGolden ./cmd/gh-awTest fails in CI if help output drifts, showing exact differences.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/user/usr/bin/gh gh api user --jq .login -unreachable=false /tmp/go-build4031923621/b255/vet--log-format /opt/hostedtoolcache/go/1.25.0/xjson(http block)/usr/bin/gh gh api user --jq .login /ref/tags/v8 g/timeutil/format_test.go by/213d854ce4107514e8e0f3331ef6c834d0e6d04bd343d9469b481c3facb8da30/log.json(http block)/usr/bin/gh gh api user --jq .login 56/sanitize_output.js c 3a14e89ff37ddbaf3357e37bebcb55cd07b/log.json - efer <8320933+mnapi(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.