Skip to content

cmd/test2json: handle running command and processing output #22789

Closed
@rsc

Description

@rsc

The official way to get JSON output from a test binary foo.test is

./foo.test -test.v 2>&1 | go tool test2json

but that's annoying on Unix and harder on Windows. Probably go tool test2json should accept a command to run and process:

go tool test2json ./foo.test -test.v

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions