-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Native Test Explorer pane unable to link with source code #304
Comments
More logs/details pls. |
I have the same issue |
Not really, sorry.
Unlikely.
That's not an output window. Would you include a FULL log? I have one idea though unlikely it will help. Try to uninstalling the "Test Explorer". Do you have the navigate to source button on the line of the tests? |
After uninstalling Test Explorer, I have the same problem. No, I do not have the "navigate to source" button on the line of the tests. Only "Run Test" and "Debug Test". Here's the log generated by testmate: I've browsed through the other logs (~/.config/Code/logs), and the only one that seems of interest is the renderer's (also shown in the Output panel when selecting the "Log (Window)" in the Output window's drop-down menu : Hopefully this is what you meant by a FULL log...? |
Okay, from this it is pretty clear that there is no file and line information provided:
Also
What is your output for I would say the problem is with google test but you state that it works with the legacy extension. I'm confused... |
Okay I see now. In the legacy extension the hyperlink is working in the output window but no navigation button either. Very simple. Update your google test framework. :) There is output window for the new extension too. There you should see the working hyperlinks. |
I’m still not sure that you’re talking about the same thing. |
Let me show what I get: 3.x:
4.x:
So at the moment I prefer 3.x with disabled native testing. |
Indeed, upgrading to the latest googletest has added the "Go to Test" button on the test line, as well as the testing context menus in test files. And the "Go to Test" functionnality works. Yay, thank you for that! But I still get the pop-up when I run a test that fails: What I see is pretty much the same as described by @justdanpo , except for the part in 4.x where running tests from a context menu in a test source code. This works for me... |
So you get this when you click on the last/location part of the line bellow:
? |
No, I get that when click on a failed test in the Testing panel, I don't even need to re-run it: out.mp4 |
This is easy to reproduce. It happens whenever the build system references the source files using relative paths. Here's an easy repro (on Mac): Create a file
Compile using this command:
Make sure the setting "Testing: Automatically Open Peek View" is set to "failureAnywhere". Run the test. You should see an error message similar to the one shown above. If you instead build using the following command, all is fine:
-- The problem is that in |
Thank you for the clarification. |
Fixed in v4.0.10 |
Fix confirmed (in v4.0.11, because of #313) |
Checklist
Describe the bug
Since 4.0.0, with the use of the native Test Explorer pane, I can no longer access my source code from the Test Explorer pane. It handles the relative path to my sources as an absolute path, and therefore can't find the source file.
I'm not sure if this is a bug or if there's some configuration missing on my part... but this used to work before 4.0.0.
Here's my config in settings.json:
To Reproduce
Having a similar configuration to mine, as far as test executables' location is concerned...
Screenshots
Link to source not working:
Link to source working:
Desktop
Regression bug?
It's kind of a regression, since it used to work with the old Test Explorer pane...
Log (optional but recommended)
I have attached the output log when running a test.
log-4.0.6.txt
The text was updated successfully, but these errors were encountered: