You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rtk go test -list prints "No tests found" while the stream lists the tests #4419
rtk go test injects -json. With -list, go test -json emits the test names as output events that carry no Test field, and no pass events. The filter only counts pass events that carry a Test, so the listing is discarded:
$ rtk go test -list . ./foo
Go test: No tests found
while raw go test -json -list . ./foo carries TestRev, BenchmarkRev, FuzzRev and the ok example.com/proj/foo 0.001s line as output events. Same stream on Go 1.22.12 and 1.24.6. Reproduced on develop 7efbaef (rtk 0.49.0).
Possible fixes: skip the -json injection when -list is present (as is done for -bench), or print the listed names.
rtk go test -list injects -json but the result filter discards -list output events, printing a false 'No tests found'; skip -json injection for -list (as done for -bench) or handle name-only events.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
src/filter/go_test.rs
src/discover/go.rs
Suggested Actions
Skip -json injection when -list flag is present, mirroring the existing -bench handling
Alternatively, handle output events without a Test field by printing the listed test/bench/fuzz names
❯ go test -list . ./internal/k8sresources/
TestIsSecretsRequestSpellings
TestClassify
TestClassifyOutputIsValidUTF8
ok github.com/xxx/internal/k8sresources 0.005s
❯ rtk go test -list . ./internal/k8sresources/
Go test: No tests found
Activity
rtk-wshm-sync-bot commentedon Oct 3, 2026
🔍 Automated Triage
bugmediumSummary
rtk go test -listinjects-jsonbut the result filter discards-listoutput events, printing a false 'No tests found'; skip-jsoninjection for-list(as done for-bench) or handle name-only events.📁 Relevant files
src/filter/go_test.rssrc/discover/go.rsSuggested Actions
-jsoninjection when-listflag is present, mirroring the existing-benchhandlingTestfield by printing the listed test/bench/fuzz names-C DIRvs-jsoninjection order) and rtk pipe -f go-test reports plain-textgo testoutput as "No tests found" #4418 (plain-text go test output) — check for shared injecti…-list . ./fooagainst Go 1.22/1.24 JSON stream fixturesTriaged automatically by wshm · This is an automated analysis, not a human review.
nightcityblade commentedon Oct 3, 2026
Hi, I'd like to work on this. I'll submit a PR shortly.
arthurk commentedon Oct 11, 2026
Ran into the same problem today:
Hopefully the fix PR can be merged soon