Skip to content

x/tools/gopls: migrate "test generation" features to gopls #47479

Closed
@n1lesh

Description

@n1lesh

vscode-go uses the gotests package to generate unit tests, which makes it hard to adjust the test generation behavior as mentioned here: vscode-go issue #1594.

We could move the test generation logic to gopls, which provides a few benefits,

  1. Flexibility in modifying logic around test generation. Current vscode-go implementation uses gotests as a child process to generate tests, which makes it hard to customize test generation.
  2. Reduction in the number of 3rd party tools for vscode-go. gotests package moves within gopls.

More about it here.

/cc @stamblerre

Metadata

Metadata

Assignees

Labels

FeatureRequestIssues asking for a new feature that does not need a proposal.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions