-
Notifications
You must be signed in to change notification settings - Fork 753
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
code lens: support running and debugging tests that use http://labix.org/gocheck #111
Comments
I would be curious to know how many people want this change before we implement it. Please upvote #111 (comment) if you would use this feature. |
Similarly, there have been mentions on Slack of the code lenses not working with Testify-based tests. |
Code lens support for testify based tests was added in microsoft/vscode-go#1707. So, if they are not working anymore, that is a regression. |
I worked on an initial implementation. It was closed during the migration to the golang org. It's no longer in sync with master but might be a good starting off point for someone. I'll try to get back to it and open the PR here because its a feature that I would really like to have, but if someone gets to it first I will not be offended. |
@tgturner Thanks. Do you have any thought on my comment in #228 (comment)? |
I opened a duplicate issue here: #274 Like I mentioned in that issue, it would be nice to either:
That way VS Code Go isn't discouraging developers from building new or different test suites packages due to lack of tooling. If that sounds like overkill, I'm happy to extend the existing code to include EDIT: I created a small fork that should solve this for folks running into issues YMMV https://github.com/tylfin/vscode-go-check |
Hi all! I've opened a PR here for review (it simply extends the existing code to support |
We hoped that we stop supporting third-party test libraries and move away from the Have you considered a separate, specialized extension for users who want to use all those test frameworks? If necessary, the extension can invoke the document symbol provider command and can create a code lens that invokes go extension's commands to run/debug tests too. |
With test discovery moving to gopls, this will need to be handled there. |
Tests that use the check package can be run as part of the whole package or file but not individually in VS Code.
This feature request is to support the below for individual tests using the check package in VS Code
Go: Test function at cursor
commandFor more, including hints on how to go about this, please see microsoft/vscode-go#1921 & microsoft/vscode-go#3222
The text was updated successfully, but these errors were encountered: