-
Notifications
You must be signed in to change notification settings - Fork 104
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
Open Test in Test Explorer doesn't work #68
Comments
Please be more specific, since I do neither know the F12 nor the Open test functionality, I must admit :-) Again, two cases here:
|
Using setup in Issue #57 running test in Release mode for AccuracyLayerTest/0.TestForwardCPU. Result in bottom pane of Test Explorer:
Right click on AccuracyLayerTest/0.TestForwardCPU in top pane of Test Explorer. Context menu shows:
Clicking on Open Test does nothing. Source for this file is available as I can see when I go to the source code of the test itself in my solution. Thanks! |
Sorry, I never noticed that entry in the tests' context menu... The good news is that it is working in general (for me) - the actual issue is that in your case, GTA is not able to find the source. Is this happening for all tests of a test executable? Anyways, please check out our trouble shooting section as a first step... |
Yes, it happens for all the tests in the test executable. The troubleshooting section didn't help. |
What's the size of the test executable and the belonging pdb file? |
07/20/2016 11:12 AM 32,252,928 test_all.exe |
Please download and install the vsix file produced by this build (which adds some debug output), enable Print test output and Print debug info, and upload the complete output GTA produces in the test output window. |
Thanks! It indeed looks like this is some bug with type-parameterized tests... We will look into it. Two remarks:
|
Sorry, don't have that output anymore. I'll remember to zip it in the Kind regards, On Thu, Jul 21, 2016 at 10:09 PM, Christian Soltenborn <
Kevin Johnsrude |
Right, but you could (as I could) pull the changes out of the comments while editing them, put them in a text file, zip that file, and upload it as suggested. Don't get me wrong: I don't really care, but I'm certainly not doing the work for you ;-) If people look at the quality of the issues you filed, they will probably have to smile if they see this one... And if you are using other things to do your things, and if you need them improved to be able to do your things, you better try to be as supportive as possible! Not at all meant as a threat, just as a recommendation... |
Caffe is using a different (older?) version of gtest. They are not printing the type parameters as expected:
instead of
For this reason, we're not finding the symbols, because we don't know the types "float" and "double".
I couldn't find out the version of gtest which caffe is using. But I diffed the source and their version's So I guess there is not much we can do with the current way of finding source files. Maybe, instead of searching for "TestSuite_TestName< TypeParam>::TestBody" we could match "TestSuite_TestName<*>::TestBody" and select the first one. They should all point to the same source line anyway... |
@KevinLucidyne First of all, thanks for cleaning up this issue - makes handling a bit easier indeed! I have implemented the suggestions arising from Jonas' analysis - can you give this build a try? Please let us know whether source file locations are now found for the according tests, and (obviously) whether they are correct in case they are found... |
Loaded new build. Restarted VS2013. Ran AccuracyLayerTest/0 group of tests. Source not found. Test output attached. |
Rather than guessing and tossing possible fixes over the wall to me, how about developing against the problem on your local machines? Set up is easy. Download and compile this code on VS 2013: It may even be the same problem on VS2015 but in any case the Community Editions of the VS suite are freely and widely available. |
Well, to be honest, I have tried that, but didn't suceed (with VS 2015), and I don't want to mess with VS 2013 on my machine. Which would mean setting up a virtual machine etc., and I don't have the time for that at the moment. However, Jonas and I have a pretty clear idea on what was missing in the version I provided for you, so I will give it one more try in the next couple of days. If that version doesn't work either, we probably have to re-think our strategy :-) |
…o in old Google Test output format (#68)
@KevinLucidyne As it turns out, Jonas has already set up your project on his machine, so he can test whether my latest patch indeed fixes the issue. However, I'm not sure when he will time for that, so if you want to give it another shot, please give this build a try... |
Works! Thanks! |
…o in old Google Test output format (#68)
Same setup as Issue #57. When a test fails or completes successfully, F12 or "Open Test" do not open the test source file.
The text was updated successfully, but these errors were encountered: