-
Notifications
You must be signed in to change notification settings - Fork 645
Cannot longer run unit-tests using check from vscode due to invalid stretchr/testify detection. #1911
Comments
Thanks for reporting this @alex-kovoy I'll look into fixing this soon. I just needed to understand one detail about the check package. |
I tried using |
Also, how have you been trying to run the tests? Using the commands to run tests in package/file/cursor or code lens to run tests in package/file/function? |
When from vscode, I run the tests in package/file by triggering vscode command:
You can do it with |
Thanks @alex-kovoy I have pushed a fix to the master branch. Can you follow the instructions to download and install the beta version of this extension to test it out? |
I've also logged #1921 to support running such tests individually |
The fix for this is now out in the latest update to this extension (0.6.90) |
This PR #1707 introduced a breaking change. Now it's no longer possible to run unit-tests from vscode if your tests have similar to 'stretchr/testify' suite.Run() call in them
For example, when using
gopkg.in/check.v1
package you may have the following test suitewhich vscode would try to run with
stretchr/testify
flags assuming that this library is used (based on regex parsing).I suggest to remove a support for 3d party libraries from a default behavior.
The text was updated successfully, but these errors were encountered: