This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
go.testFlags are not applied correctly when using the "debug test" code lens #2115
Closed
Description
Steps to Reproduce:
- Save:
foo_test.go
:
package foo
import (
"flag"
"testing"
)
var ok = flag.Bool("ok", false, "")
func TestFoo(t *testing.T) {
if !*ok {
t.Fail()
}
}
.vscode/settings.json
:
{
"go.testFlags": ["-ok"]
}
- Open
foo_test.go
and click the "run test" code lens, the test will pass. - Click the "debug test" code lens, the test will fail.