Skip to content

cmd/go: go test should be more explicit about test failures #13106

@pmezard

Description

@pmezard

In the best case, the output of go test github.com/blevesearch/bleve/... is 88 lines long. If one of the early test fails, the error message can easily be scrolled out and short of looking at $? or scrolling back manually, the user has no way to know the test run failed.

I propose go test prints something visible at the end of the run in that case like:

TEST RESULT: FAILED

Having a prefix like TEST RESULT: may make it easier for tools processing test output to ignore this line in the future, should its format change (by adding the number of tests run/successful, or time it took, etc.).
A TEST RESULT: OK might be displayed on success to.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    GoCommandcmd/goNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions