You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to have fields of filename and line_number as well, indicating where the named test is defined.
The text was updated successfully, but these errors were encountered:
seankhliao
changed the title
Add fields to go test indicating test definition location
proposal: cmd/go: test -json include file and line info
Apr 23, 2021
go test -json runs test2json on the output of go test.
Since that info is not in the output, I don't see how we can add it.
More generally, it seems like programs can easily find the test by searching the files in the directory.
This proposal has been added to the active column of the proposals project
and will now be reviewed at the weekly proposal review meetings.
— rsc for the proposal review group
go test ./... -json
Running this process you should see output such as:
It would be useful to have fields of
filename
andline_number
as well, indicating where the named test is defined.The text was updated successfully, but these errors were encountered: