-
Notifications
You must be signed in to change notification settings - Fork 645
npm test fails on fresh checkout #801
Comments
Ah! This was a debt item I knew I had to pay some day ... There is hack that a few unit tests bank on the fact that the machine already has the Go extension up and has all the dependent tools. These specific tests are using the The fix is to set up a small Go project with vendoring inside the "test/fixtures" folder, point GOPATH there while running unit tests and update the unit tests to use this Go project instead of I am currently swamped a bit, and wont be able to do this refactoring until sometime next week. |
Is this still a problem? Enough has changed since 2017 with vendoring that I wonder if this issue still exist. |
This is still a problem for a contributor who wants to run the tests but has not installed The function mainly being tested here is
If we add a test fixture that has a 2 packages with vendor imports, then they can be used instead of relying on source code for the |
Hm, I think the larger problem that needs to be solved is making sure that the user's current environment doesn't affect test execution in general. I see test failures quite often because I have |
Yes, golang/vscode-go#43 does kinda covers it. |
Thanks for clarifying! I edited the description to include a comment specific to this issue, so I think this can be closed for now in favor of golang/vscode-go#43. |
npm test fails with error
How to reproduce
git clone git@github.com:Microsoft/vscode-go.git && cd vscode-go && npm install
npm run compile
(then ctrl+c once it is done compiling)npm run test
Environment
Full log
The text was updated successfully, but these errors were encountered: