Skip to content

Automatically enable build tags when clicking a test #3928

@myaaaaaaaaa

Description

@myaaaaaaaaa

It would be nice for vscode-go to automatically recognize the below situation and adapt accordingly:

-go test -timeout 5s -run ^TestFail$
+go test -timeout 5s -run ^TestFail$ -tags=integration
Image

As this screenshot hopefully shows, it's reasonable for a user to expect that clicking on a skipped test would override its default skip behavior. It's obviously impossible to detect every possible reason why a test would be skipped, but this should be a straightforward (and common) case.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions