go tool test2json ./foo.test -test.v is the solution for cross-platform running.
Still, I would prefer something like ./foo.test -test.json. It's consistent with the rest of the testing arguments and it's definitely debuggable with Delve. I'm not sure whether Delve will work fine with the go tool test2json tool.
The official way to get JSON output from a test binary foo.test is
but that's annoying on Unix and harder on Windows. Probably go tool test2json should accept a command to run and process:
The text was updated successfully, but these errors were encountered: