Skip to content

cmd/test2json: support emitting JSON directly from the test binary #22996

Closed
@petrhosek

Description

@petrhosek

It is now possible to emit JSON from a test binary (#2981, #22789), but this still requires the go tool:

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

This doesn't work in -c case which is really useful when cross-platform running tests, i.e. we build the tests binaries on one platform but run them on a different one as plain binaries without having to use the go tool. Would it be possible to support that scenario as well, e.g. as -test.json file flag?

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions