Reputation: 432
I'm using the visual code and GO plugin.
I configured the verbose option for go test "go.testFlags": ["-v"]
.
In this case, when I run the test unit, from the output window, I'm seeing the full path of the test unit.
--- PASS: TestConstantBinary (0.00s)
/Users/ian.w/Documents/learngo/src/learnGO/tests/constant_test.go:27: true false false
Is that possible to omit the GOPATH from the above,
GOPATH=/Users/ian.w/Documents/learngo
Thanks a lot.
Upvotes: 1
Views: 45
Reputation: 7091
It is not possible to strip of GOPATH from the output. Test output will always use the absolute
path
Upvotes: 1