-
Notifications
You must be signed in to change notification settings - Fork 645
Testing tool doesn't show output #1120
Comments
@mileusna Its right there.... look at the line which has the file path... In the end it says "Failed, but no Hello" |
I have pushed a fix. But even with the fix the |
@ramya-rao-a your changes on the master? |
@ramya-rao-a Yes, the This is the same code on macOS with VS Code. 1.14.0 and vscode-go v0.6.62. And this is with upgraded VS Code 1.14.2 and vscode-go v0.6.63 In both cases I thought that it was the version of the VS Code that is problematic with vscode-go, but now I realised that the vscode-go is also different version 0.6.63 vs 0.6.62 so I guess it is the vscode-go 0.6.63 issue, not related to the VS Code upgrade. |
Fixed on #1124 cc @ramya-rao-a |
This fix is now out in the latest update to the Go extension 0.6.64 |
Latest update, with VS Code 1.17.0 and vscode-go 0.6.66 neither stderr nor stdout is printed with testing tool. Only if there is |
To print to stderr or stdout, you need to add {
"go.testFlags": ["-v"]
} |
OK. It is not the same behavior as |
@mileusna You are right, previously, we were running a simple We moved to using The move was made to support running tests in symlinked folders. See #1164 I'll look into documenting this better |
@martinlindhe #1164 is a PR which is linked to #846 (comment) which in turn talks about the symlinks |
I love "run test" option in test files.
However, after VS Code update on 1.14.2 on MacOS executing tests inside Code doesn't show up any log output. So if I have
log.Println(err)
it won't be printed, however,fmt.Println(err)
will be printed.The text was updated successfully, but these errors were encountered: