Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting the file as test target rather than the package #3127

Open
viocha opened this issue Jan 14, 2024 · 0 comments
Open

Allow setting the file as test target rather than the package #3127

viocha opened this issue Jan 14, 2024 · 0 comments

Comments

@viocha
Copy link

viocha commented Jan 14, 2024

Is your feature request related to a problem? Please describe.

When I tested a function, it failed and reported errors from the package. I observed that it utilized the command go.exe test -timeout 30s -run ^TestIntMinBasic$. If I append the filename to the command, as in go.exe test -timeout 30s -run ^TestIntMinBasic$ .\unit_test.go -v, it runs successfully. Goland doesn’t report this error since it supports the test kind “file”. I hope that the vscode plugin could also allow the configuration of the test kind or run kind to “file”.

image
image
image

Describe the solution you'd like

Describe alternatives you've considered
Append the file name to the test command

Additional context
https://www.jetbrains.com/help/go/run-debug-configuration.html#list-of-fields-in-go-build-configuration

@gopherbot gopherbot added this to the Untriaged milestone Jan 14, 2024
@suzmue suzmue modified the milestones: Untriaged, vscode-go/backlog Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants