Skip to content

cmd/go: add summary at end of go test results #30507

@markvincentcaro

Description

@markvincentcaro

Currently, there is no way to quickly tell if a test failure occurred after running go test.

You have to scroll up and look for the word FAIL or search for it in a text editor.

Printing a summary of the test results at the bottom (e.g. Tests run: 10, Failures: 2, Errors: 0, Skipped: 0) would make it easy to tell at a glance if any test failures occurred or not.

An answer to Issue #27755 suggested using the -json flag, but I haven't seen any good documentation or examples on how to use it. Also, this approach seems too convoluted for something that other languages have for tests out of the box.

EDIT: I'm on Windows 10.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions