ppparihar / GoTestExplorer

A Go Test Explorer for VS code (https://marketplace.visualstudio.com/items?itemName=premparihar.gotestexplorer)
46 stars 8 forks source link

Explorer does not use the "go.testFlags" from settings #17

Closed johnpan closed 3 years ago

johnpan commented 4 years ago

Trying to avoid the known error (here ([https://github.com/golang/go/issues/28065])) "gcc": executable file not found in $PATH, I used

"go.testFlags": [
        "-vet=off"
    ]

but reading the output while testing, the tool does not add the test flags:

Running tool: /usr/local/go/bin/go test  -timeout 30s -run ^TestAreSpecificOdds$
# runtime/cgo
exec: "gcc": executable file not found in $PATH
FAIL    caching/parsers [build failed]
FAIL
Error: Tests failed.
bbrks commented 4 years ago

An inferred workspace GOPATH is not being picked up when using the "go.inferGopath": true setting either. This might be closely related.