← 返回首页
experiments · golang/vscode-go Wiki · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

experiments

GitHub Action edited this page Nov 1, 2024 · 1 revision

Pre-release versions of vscode-go include experimental features. These features may be individually enabled or disabled via the setting go.experiments.

Test explorer

Go Companion includes an experimental test explorer implementation based on gopls's test discovery. This requires gopls v0.17.0 or newer. If Go Companion is present and vscode-go is a pre-release version, vscode-go will prefer Go Companion's test explorer, disabling its own, unless the experiment is set to off. The experimental test explorer provides more robust test discovery by using gopls, including static discovery of some subtests. It also implements:

  • Ignore tests within files excluded by files.exclude or goExp.testExplorer.exclude.
  • Disable automatic discovery of tests by setting goExp.testExplorer.discovery to "off".
  • Control how tests are displayed with goExp.testExplorer.showFiles, goExp.testExplorer.nestPackages, and goExp.testExplorer.nestSubtests.
  • Debugging a test updates its status in the test explorer.
  • Support for continuous runs.
  • Support for code coverage.
  • Code lenses (hidden by default) that are integrated with the test explorer.
  • Integrated viewer for pprof profiles.

✏️ Want to contribute to this wiki?

Update the source and send a PR.

Wiki pages Pages 18

Clone this wiki locally

Footer

© 2026 GitHub, Inc.